/* ============================================
   AGENTIC HERO SECTION - AI-READY INTERACTIVE DESIGN
   Borderless, fluid design for AI Chat Orb guide mode
   ============================================ */

:root {
  /* Agentic color palette */
  --agentic-purple: #a855f7;
  --agentic-blue: #60a5fa;
  --agentic-cyan: #22d3ee;
  --agentic-teal: #14b8a6;
  --agentic-pink: #f472b6;

  /* Glassmorphic layers */
  --glass-light: rgba(255, 255, 255, 0.08);
  --glass-medium: rgba(255, 255, 255, 0.12);
  --glass-strong: rgba(255, 255, 255, 0.18);
  --glass-border: rgba(255, 255, 255, 0.2);

  /* Fluid animations */
  --flow-duration: 3s;
  --hover-scale: 1.05;
  --active-scale: 1.12;
}

[data-theme="dark"] {
  --glass-light: rgba(15, 23, 42, 0.5);
  --glass-medium: rgba(30, 41, 59, 0.6);
  --glass-strong: rgba(51, 65, 85, 0.7);
  --glass-border: rgba(148, 163, 184, 0.2);
}

/* ============================================
   SECTION CONTAINER - Borderless fluid layout
   ============================================ */

.agentic-hero-section {
  position: relative;
  min-height: 90vh;
  padding: 6rem 0 4rem;
  background: linear-gradient(135deg,
      #0f172a 0%,
      #1e293b 25%,
      #0f172a 50%,
      #1e1b4b 75%,
      #0f172a 100%);
  background-size: 400% 400%;
  animation: gradientFlow var(--flow-duration) ease infinite;
  overflow: hidden;
}

html[data-theme="light"] .agentic-hero-section,
html[data-bs-theme="light"] .agentic-hero-section {
  background: linear-gradient(135deg,
      #7c3aed 0%,
      #6366f1 15%,
      #8b5cf6 30%,
      #06b6d4 45%,
      #a855f7 60%,
      #3b82f6 75%,
      #8b5cf6 90%,
      #7c3aed 100%) !important;
  background-size: 400% 400% !important;
  animation: gradientFlow 8s ease infinite !important;
}

/* Note: Light mode particles enabled below at line ~100 with specific styles */

@keyframes gradientFlow {

  0%,
  100% {
    background-position: 0% 50%;
  }

  50% {
    background-position: 100% 50%;
  }
}

/* Ambient particles effect */
.agentic-hero-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image:
    radial-gradient(circle at 20% 30%, rgba(168, 85, 247, 0.15) 0%, transparent 50%),
    radial-gradient(circle at 80% 70%, rgba(34, 211, 238, 0.15) 0%, transparent 50%),
    radial-gradient(circle at 50% 50%, rgba(96, 165, 250, 0.1) 0%, transparent 50%);
  animation: particleFloat 20s ease-in-out infinite;
  pointer-events: none;
}

/* Light mode particles - VIBRANT, highly visible colors like dark mode */
html[data-theme="light"] .agentic-hero-section::before,
html[data-bs-theme="light"] .agentic-hero-section::before {
  display: block !important;
  content: '' !important;
  background-image:
    radial-gradient(circle at 15% 25%, rgba(124, 58, 237, 0.45) 0%, rgba(139, 92, 246, 0.25) 30%, transparent 60%),
    radial-gradient(circle at 85% 75%, rgba(168, 85, 247, 0.5) 0%, rgba(124, 58, 237, 0.3) 25%, transparent 55%),
    radial-gradient(circle at 50% 50%, rgba(99, 102, 241, 0.4) 0%, rgba(59, 130, 246, 0.2) 35%, transparent 65%),
    radial-gradient(circle at 75% 20%, rgba(139, 92, 246, 0.55) 0%, rgba(168, 85, 247, 0.3) 20%, transparent 50%),
    radial-gradient(circle at 25% 80%, rgba(6, 182, 212, 0.4) 0%, rgba(34, 211, 238, 0.25) 30%, transparent 60%),
    radial-gradient(circle at 90% 45%, rgba(236, 72, 153, 0.35) 0%, rgba(244, 114, 182, 0.2) 25%, transparent 55%),
    radial-gradient(circle at 10% 60%, rgba(59, 130, 246, 0.4) 0%, rgba(96, 165, 250, 0.2) 30%, transparent 60%) !important;
  animation: particleFloatLight 18s ease-in-out infinite !important;
}

/* Secondary particle layer for both modes */
.agentic-hero-section::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image:
    radial-gradient(circle at 40% 60%, rgba(96, 165, 250, 0.12) 0%, transparent 45%),
    radial-gradient(circle at 60% 30%, rgba(244, 114, 182, 0.1) 0%, transparent 50%);
  animation: particleFloatSecondary 25s ease-in-out infinite reverse;
  pointer-events: none;
}

/* Light mode secondary layer - more intense colors */
html[data-theme="light"] .agentic-hero-section::after,
html[data-bs-theme="light"] .agentic-hero-section::after {
  background-image:
    radial-gradient(circle at 35% 65%, rgba(124, 58, 237, 0.35) 0%, rgba(139, 92, 246, 0.15) 35%, transparent 60%),
    radial-gradient(circle at 65% 35%, rgba(236, 72, 153, 0.3) 0%, rgba(244, 114, 182, 0.15) 30%, transparent 55%),
    radial-gradient(circle at 50% 85%, rgba(6, 182, 212, 0.3) 0%, rgba(34, 211, 238, 0.12) 40%, transparent 65%),
    radial-gradient(circle at 20% 40%, rgba(99, 102, 241, 0.32) 0%, rgba(129, 140, 248, 0.15) 35%, transparent 60%) !important;
  animation: particleFloatSecondary 22s ease-in-out infinite reverse !important;
}

@keyframes particleFloat {
  0%,
  100% {
    opacity: 0.3;
    transform: scale(1) translateY(0);
  }

  50% {
    opacity: 0.6;
    transform: scale(1.1) translateY(-10px);
  }
}

/* Light mode particle animation - DRAMATIC movement matching dark mode intensity */
@keyframes particleFloatLight {
  0% {
    opacity: 0.7;
    transform: scale(1) translate(0, 0) rotate(0deg);
  }
  
  25% {
    opacity: 0.85;
    transform: scale(1.08) translate(15px, -15px) rotate(2deg);
  }

  50% {
    opacity: 1;
    transform: scale(1.15) translate(-10px, -30px) rotate(-3deg);
  }
  
  75% {
    opacity: 0.85;
    transform: scale(1.08) translate(-15px, -15px) rotate(2deg);
  }
  
  100% {
    opacity: 0.7;
    transform: scale(1) translate(0, 0) rotate(0deg);
  }
}

/* Secondary particle layer animation */
@keyframes particleFloatSecondary {
  0% {
    opacity: 0.4;
    transform: scale(0.95) translate(0, 0);
  }
  
  33% {
    opacity: 0.7;
    transform: scale(1.1) translate(-20px, 20px);
  }
  
  66% {
    opacity: 0.6;
    transform: scale(1.05) translate(20px, -15px);
  }
  
  100% {
    opacity: 0.4;
    transform: scale(0.95) translate(0, 0);
  }
}

/* ============================================
   LEFT COLUMN - Narrative content
   ============================================ */

.agentic-badge-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  justify-content: center;
}

@media (min-width: 992px) {
  .agentic-badge-row {
    justify-content: flex-start;
  }
}

.agentic-badge-dot {
  width: 8px;
  height: 8px;
  background: var(--agentic-cyan);
  border-radius: 50%;
  box-shadow: 0 0 12px var(--agentic-cyan);
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {

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

  50% {
    opacity: 0.6;
    transform: scale(1.2);
  }
}

.agentic-badge-text {
  font-size: 0.875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--agentic-cyan);
  text-shadow: 0 0 8px rgba(34, 211, 238, 0.5);
}

.agentic-hero-section h1 {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 800;
  line-height: 1.2;
  color: #f1f5f9;
  margin-bottom: 1.5rem;
}

html[data-theme="light"] .agentic-hero-section h1,
html[data-bs-theme="light"] .agentic-hero-section h1 {
  color: #1e293b !important;
  text-shadow: none !important;
}

.agentic-highlight {
  background: linear-gradient(135deg, var(--agentic-blue), var(--agentic-purple));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  position: relative;
  display: inline-block;
}

/* Light mode: MUCH darker gradient for visibility against light background */
html[data-theme="light"] .agentic-highlight,
html[data-bs-theme="light"] .agentic-highlight {
  background: linear-gradient(135deg, 
    #1e40af 0%,     /* Deep blue - high contrast */
    #6b21a8 35%,    /* Deep purple */
    #7e22ce 65%,    /* Vibrant purple */
    #be185d 100%    /* Deep pink */
  ) !important;
  -webkit-background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
  background-clip: text !important;
  font-weight: 700 !important;
}

.agentic-hero-description {
  font-size: 1.125rem;
  line-height: 1.7;
  color: #cbd5e1;
  min-height: 3.4em;
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

html[data-theme="light"] .agentic-hero-description,
html[data-bs-theme="light"] .agentic-hero-description {
  color: #334155 !important;
  text-shadow: none !important;
}

.agentic-meta {
  gap: 0.75rem;
}

.agentic-meta-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  background: var(--glass-light);
  backdrop-filter: blur(12px);
  border: 1px solid var(--glass-border);
  border-radius: 2rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: #e2e8f0;
  transition: all 0.3s ease;
}

html[data-theme="light"] .agentic-meta-pill,
html[data-bs-theme="light"] .agentic-meta-pill {
  color: #1e293b !important;
  background: linear-gradient(135deg,
    rgba(224, 231, 255, 0.8) 0%,
    rgba(221, 214, 254, 0.7) 100%) !important;
  border-color: rgba(99, 102, 241, 0.3) !important;
  box-shadow: 0 2px 8px rgba(99, 102, 241, 0.15) !important;
}

.agentic-meta-pill:hover {
  background: var(--glass-medium);
  transform: translateY(-2px);
}

.agentic-meta-pill .dot {
  width: 6px;
  height: 6px;
  background: var(--agentic-purple);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--agentic-purple);
}

/* Interactive annotation panel */
.agentic-annotation {
  padding: 1.5rem 2rem;
  background: var(--glass-medium);
  backdrop-filter: blur(20px);
  border: 2px solid var(--glass-border);
  border-radius: 1rem;
  max-width: 900px;
  margin: 0 auto;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

html[data-theme="light"] .agentic-annotation,
html[data-bs-theme="light"] .agentic-annotation {
  background: linear-gradient(135deg,
    rgba(224, 231, 255, 0.6) 0%,
    rgba(221, 214, 254, 0.55) 50%,
    rgba(224, 242, 254, 0.6) 100%) !important;
  border: 2px solid rgba(99, 102, 241, 0.4) !important;
  box-shadow: 
    0 8px 40px rgba(99, 102, 241, 0.25),
    0 4px 20px rgba(139, 92, 246, 0.15),
    inset 0 1px 0 rgba(255, 255, 255, 0.5) !important;
  -webkit-backdrop-filter: blur(20px) !important;
  backdrop-filter: blur(20px) !important;
}

.agentic-annotation:hover {
  background: var(--glass-strong);
  transform: translateY(-2px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.25);
}

html[data-theme="light"] .agentic-annotation:hover,
html[data-bs-theme="light"] .agentic-annotation:hover {
  background: linear-gradient(135deg,
    rgba(224, 231, 255, 0.75) 0%,
    rgba(221, 214, 254, 0.7) 50%,
    rgba(224, 242, 254, 0.75) 100%) !important;
  border-color: rgba(99, 102, 241, 0.6) !important;
  box-shadow: 
    0 12px 48px rgba(99, 102, 241, 0.35),
    0 6px 24px rgba(139, 92, 246, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.6) !important;
}

.agentic-annotation-label {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--agentic-cyan);
  margin-bottom: 0.5rem;
  text-align: center;
  text-shadow: 0 0 20px currentColor, 0 0 10px currentColor;
}

.agentic-annotation-body {
  font-size: 0.9375rem;
  line-height: 1.6;
  color: #cbd5e1;
  margin: 0;
}

html[data-theme="light"] .agentic-annotation-body,
html[data-bs-theme="light"] .agentic-annotation-body {
  color: #334155 !important;
  text-shadow: none !important;
}

/* Description below annotation - matches lead text styling */
.agentic-annotation-wrapper .agentic-hero-description {
  font-size: 0.9375rem;
  line-height: 1.6;
  color: #cbd5e1;
  margin-top: 1.5rem;
  margin-bottom: 0;
  text-align: center;
}

html[data-theme="light"] .agentic-annotation-wrapper .agentic-hero-description,
html[data-bs-theme="light"] .agentic-annotation-wrapper .agentic-hero-description {
  color: #334155 !important;
  text-shadow: 0 1px 10px rgba(255, 255, 255, 0.6) !important;
}

/* ============================================
   RIGHT COLUMN - Interactive Product Ecosystem
   BORDERLESS DESIGN - Removed container borders
   ============================================ */

/* New ecosystem container - SVG backdrop + floating nodes */
.agentic-ecosystem-container {
  position: relative;
  width: 100%;
  min-height: 500px;
  padding: 2rem 0;
  /* Container for full backdrop SVG + overlaid product nodes */
}

/* Wider screens: side-by-side layout wrapper */
.agentic-ecosystem-wrapper {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

@media (min-width: 1200px) {
  .agentic-ecosystem-wrapper {
    flex-direction: row;
    align-items: center; /* Center vertically */
    justify-content: center; /* Center horizontally */
    gap: 3rem;
  }
  
  .agentic-ecosystem-container {
    flex: 0 0 50%;
    min-height: 550px;
  }
  
  .agentic-annotation-wrapper {
    flex: 0 0 calc(50% - 3rem);
    display: flex;
    flex-direction: column;
    justify-content: center; /* Center content vertically */
    align-items: center; /* Center content horizontally */
    align-self: center; /* Center the wrapper itself */
  }
}

.agentic-hero-graph {
  position: relative;
  width: 100%;
  min-height: 400px;
  padding: 0;
  /* COMPLETELY BORDERLESS: No borders, no background, pure floating canvas */
  /* Full-width responsive design for AI Orb interaction */
}

.agentic-graph-header {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 2rem;
  padding: 0;
  /* Centered floating title */
}

.agentic-graph-title {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: #e2e8f0;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.5);
  padding: 0.75rem 1.5rem;
  background: rgba(15, 23, 42, 0.3);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-radius: 2rem;
  border: none;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
  transition: all 0.3s ease;
}

html[data-theme="light"] .agentic-graph-title,
html[data-bs-theme="light"] .agentic-graph-title {
  color: #1e293b !important;
  background: linear-gradient(135deg,
    rgba(224, 231, 255, 0.85) 0%,
    rgba(221, 214, 254, 0.8) 100%) !important;
  border: 1px solid rgba(99, 102, 241, 0.3) !important;
  box-shadow: 
    0 4px 20px rgba(99, 102, 241, 0.2),
    0 2px 10px rgba(0, 0, 0, 0.05),
    inset 0 1px 0 rgba(255, 255, 255, 0.9) !important;
}

.agentic-graph-title:hover {
  background: rgba(15, 23, 42, 0.4);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

.agentic-graph-title .dot {
  width: 8px;
  height: 8px;
  background: var(--agentic-purple);
  border-radius: 50%;
  box-shadow: 0 0 12px var(--agentic-purple);
  animation: pulse 2s ease-in-out infinite;
}

.agentic-graph-legend {
  display: none;
  /* Removed - legend not needed */
}

/* SVG Background - Full backdrop filling container */
.agentic-graph-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0.7;
  pointer-events: none;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

html[data-theme="light"] .agentic-graph-bg,
html[data-bs-theme="light"] .agentic-graph-bg {
  opacity: 0.7 !important;
}

.agentic-graph-bg img {
  width: 100%;
  height: 100%;
  min-width: 100%;
  min-height: 100%;
  object-fit: cover;
  object-position: center;
  filter: drop-shadow(0 0 30px rgba(168, 85, 247, 0.4)) blur(0.5px);
}

html[data-theme="light"] .agentic-graph-bg img,
html[data-bs-theme="light"] .agentic-graph-bg img {
  filter: drop-shadow(0 0 40px rgba(99, 102, 241, 0.6)) 
          drop-shadow(0 0 20px rgba(139, 92, 246, 0.4)) 
          brightness(1.1) 
          contrast(1.1) !important;
}

/* ============================================
   PRODUCT NODES - Floating glassmorphic cards
   AI-READY with data-node-id for guide mode
   ============================================ */

.agentic-ecosystem-nodes {
  position: relative;
  z-index: 10;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: minmax(90px, auto);
  gap: 1rem;
  max-width: 100%;
  margin: 0 auto;
  padding: 1.5rem;
  /* Company hierarchy: SinAI header → 4 products → Tito under EDAAI */
}

/* Individual node positioning - compact sizing */
.agentic-node {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 0.875rem;
  min-height: 80px;
  background: var(--glass-light);
  backdrop-filter: blur(20px);
  border: 2px solid var(--glass-border);
  border-radius: 1rem;
  font-size: 0.8125rem;
  color: #f1f5f9;
  text-align: center;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

html[data-theme="light"] .agentic-node,
html[data-bs-theme="light"] .agentic-node {
  color: #1e293b !important;
  background: linear-gradient(135deg,
    rgba(34, 211, 238, 0.20) 0%,
    rgba(168, 85, 247, 0.25) 50%,
    rgba(236, 72, 153, 0.20) 100%) !important;
  border: 2px solid rgba(99, 102, 241, 0.5) !important;
  box-shadow: 
    0 4px 24px rgba(99, 102, 241, 0.35),
    0 2px 12px rgba(168, 85, 247, 0.25),
    0 0 40px rgba(34, 211, 238, 0.15),
    inset 0 1px 0 rgba(255, 255, 255, 1),
    inset 0 -1px 0 rgba(99, 102, 241, 0.2) !important;
  -webkit-backdrop-filter: blur(20px) !important;
  backdrop-filter: blur(20px) !important;
}

html[data-theme="light"] .agentic-node:hover,
html[data-bs-theme="light"] .agentic-node:hover {
  background: linear-gradient(135deg,
    rgba(34, 211, 238, 0.35) 0%,
    rgba(168, 85, 247, 0.40) 50%,
    rgba(236, 72, 153, 0.35) 100%) !important;
  border-color: rgba(99, 102, 241, 0.8) !important;
  box-shadow: 
    0 12px 48px rgba(99, 102, 241, 0.45),
    0 0 60px rgba(168, 85, 247, 0.35),
    0 0 80px rgba(34, 211, 238, 0.25),
    inset 0 1px 0 rgba(255, 255, 255, 1),
    inset 0 -2px 0 rgba(99, 102, 241, 0.3) !important;
  transform: translateY(-6px) scale(1.02) !important;
}

.agentic-node::before {
  content: '';
  position: absolute;
  top: -2px;
  left: -2px;
  right: -2px;
  bottom: -2px;
  background: linear-gradient(135deg, transparent, currentColor, transparent);
  border-radius: inherit;
  opacity: 0;
  transition: opacity 0.4s ease;
  z-index: -1;
}

.agentic-node:hover,
.agentic-node:focus {
  transform: translateY(-6px) scale(var(--hover-scale));
  background: var(--glass-medium);
  border-color: currentColor;
  box-shadow:
    0 12px 32px rgba(0, 0, 0, 0.2),
    0 0 24px currentColor;
}

.agentic-node:hover::before,
.agentic-node:focus::before {
  opacity: 0.3;
}

.agentic-node.is-active {
  transform: translateY(-8px) scale(var(--active-scale));
  background: var(--glass-strong);
  border-color: currentColor;
  border-width: 3px;
  box-shadow:
    0 16px 48px rgba(0, 0, 0, 0.3),
    0 0 32px currentColor;
}

.agentic-node.is-active::before {
  opacity: 0.5;
}

/* Node content */
.node-pill {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 1rem;
  font-size: 0.625rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 0.5rem;
  color: inherit;
}

.node-pill-new {
  background: linear-gradient(135deg, #14b8a6, #0f766e);
  color: #fff;
  box-shadow: 0 0 12px rgba(20, 184, 166, 0.5);
}

.node-title {
  display: block;
  font-size: 0.9375rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
  line-height: 1.2;
  color: inherit;
}

.node-subtitle {
  display: block;
  font-size: 0.75rem;
  opacity: 0.85;
  line-height: 1.25;
  color: inherit;
}

/* Company hierarchy grid positioning - NEVER auto-rearrange */
.node-sinai {
  grid-column: 1 / -1; /* Spans all 4 columns - master header */
  grid-row: 1;
  color: var(--agentic-cyan);
  max-width: 450px; /* Compact master node */
  margin: 0 auto; /* Center in the row */
  min-height: 70px; /* Smaller than product nodes */
  padding: 0.625rem 0.875rem;
}

.node-istamp {
  grid-column: 1;
  grid-row: 2;
  color: var(--agentic-purple);
}

.node-eihdah {
  grid-column: 2;
  grid-row: 2;
  color: var(--agentic-blue);
}

.node-edaaai {
  grid-column: 3;
  grid-row: 2;
  color: var(--agentic-cyan);
}

.node-rch2o {
  grid-column: 4;
  grid-row: 2;
  color: var(--agentic-teal);
}

.node-tito {
  grid-column: 3;
  grid-row: 3;
  color: var(--agentic-purple);
  opacity: 0.95;
  /* Visually nested under EDAAI */
}

/* ============================================
   AI GUIDE MODE INTEGRATION
   Data attributes for Chat Orb interaction
   ============================================ */

[data-agentic-node] {
  /* AI Chat Orb will target these nodes via data-agentic-node attribute */
  /* Guide mode will highlight and animate these programmatically */
}

[data-agentic-node]:focus-visible {
  outline: 3px solid currentColor;
  outline-offset: 4px;
}

/* Highlight state for AI guide mode */
.agentic-node[data-guide-highlight="true"] {
  animation: guideHighlight 2s ease-in-out infinite;
}

@keyframes guideHighlight {

  0%,
  100% {
    box-shadow:
      0 16px 48px rgba(0, 0, 0, 0.3),
      0 0 32px currentColor;
  }

  50% {
    box-shadow:
      0 20px 56px rgba(0, 0, 0, 0.4),
      0 0 48px currentColor,
      inset 0 0 20px rgba(255, 255, 255, 0.1);
  }
}

/* ============================================
   RESPONSIVE DESIGN - AI Orb Guide Mode Compatible
   ============================================ */

/* Large tablets and below */
@media (max-width: 1199.98px) {
  .agentic-ecosystem-container {
    min-height: 450px;
    padding: 1.5rem 0;
  }

  .agentic-ecosystem-nodes {
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 0.875rem;
    padding: 1.25rem;
  }
  
  .agentic-node {
    padding: 0.75rem 0.875rem;
    min-height: 80px;
  }
}

/* Tablets - maintain hierarchy with 2-column grid */
@media (max-width: 991.98px) {
  .agentic-hero-section {
    min-height: auto;
    padding: 4rem 0 3rem;
  }

  .agentic-ecosystem-container {
    min-height: 400px;
    padding: 1.25rem 0;
  }

  .agentic-ecosystem-nodes {
    grid-template-columns: repeat(4, 1fr);
    gap: 0.625rem;
    padding: 1rem;
  }
  
  /* Master node - same size as products */
  .node-sinai {
    grid-column: 1 / -1;
    grid-row: 1;
    max-width: 100%;
    min-height: 70px;
    padding: 0.625rem 0.75rem;
    font-size: 0.6875rem;
  }
  
  /* 4 products per row */
  .node-istamp { grid-column: 1; grid-row: 2; }
  .node-eihdah { grid-column: 2; grid-row: 2; }
  .node-edaaai { grid-column: 3; grid-row: 2; }
  .node-rch2o { grid-column: 4; grid-row: 2; }
  .node-tito { grid-column: 3; grid-row: 3; }
  
  /* Product nodes match master size */
  .agentic-node {
    padding: 0.625rem 0.75rem;
    min-height: 70px;
    font-size: 0.6875rem;
  }
  
  .node-title {
    font-size: 0.75rem;
  }
  
  .node-subtitle {
    font-size: 0.625rem;
  }

  .agentic-graph-header {
    margin-bottom: 1.25rem;
  }

  .agentic-annotation {
    padding: 1rem 1.25rem;
  }
}

/* Mobile landscape - maintain hierarchy */
@media (max-width: 767.98px) {
  .agentic-ecosystem-container {
    min-height: 380px;
    padding: 1rem 0;
  }

  .agentic-ecosystem-nodes {
    grid-template-columns: repeat(4, 1fr);
    gap: 0.5rem;
    padding: 0.75rem;
  }
  
  /* Master node matches products */
  .node-sinai {
    grid-column: 1 / -1;
    grid-row: 1;
    max-width: 100%;
    min-height: 62px;
    padding: 0.5rem 0.625rem;
    font-size: 0.625rem;
  }
  
  /* 4 products per row */
  .node-istamp { grid-column: 1; grid-row: 2; }
  .node-eihdah { grid-column: 2; grid-row: 2; }
  .node-edaaai { grid-column: 3; grid-row: 2; }
  .node-rch2o { grid-column: 4; grid-row: 2; }
  .node-tito { grid-column: 3; grid-row: 3; }

  /* Product nodes match master */
  .agentic-node {
    min-height: 62px;
    padding: 0.5rem 0.625rem;
    font-size: 0.625rem;
  }
  
  .node-title {
    font-size: 0.6875rem;
    margin-bottom: 0.125rem;
  }
  
  .node-subtitle {
    font-size: 0.5625rem;
  }

  .agentic-graph-header {
    margin-bottom: 1rem;
  }

  .agentic-annotation {
    padding: 0.875rem 1rem;
  }
}

/* Mobile portrait - hierarchy locked, smallest sizing */
@media (max-width: 575.98px) {
  .agentic-hero-section h1 {
    font-size: 1.75rem;
  }

  .agentic-hero-description {
    font-size: 1rem;
    min-height: auto;
  }

  .agentic-meta {
    flex-direction: column;
    align-items: stretch;
  }

  .agentic-meta-pill {
    justify-content: center;
  }

  .agentic-graph-title {
    font-size: 0.6875rem;
    padding: 0.5rem 1rem;
  }

  .agentic-ecosystem-container {
    min-height: 320px;
    padding: 0.75rem 0;
  }

  .agentic-ecosystem-nodes {
    grid-template-columns: repeat(4, 1fr);
    gap: 0.375rem;
    padding: 0.5rem;
  }
  
  /* Mobile portrait - master matches products */
  .node-sinai {
    max-width: 100%;
    min-height: 58px;
    padding: 0.5rem 0.625rem;
    font-size: 0.5625rem;
  }
  
  /* Product nodes match master */
  .agentic-node {
    min-height: 58px;
    padding: 0.5rem 0.625rem;
  }
  
  .node-title {
    font-size: 0.625rem;
  }
  
  .node-subtitle {
    font-size: 0.5rem;
  }
  
  /* Company hierarchy preserved even on smallest screens */
  .node-sinai {
    grid-column: 1 / -1;
    grid-row: 1;
  }
  
  .node-istamp { grid-column: 1; grid-row: 2; }
  .node-eihdah { grid-column: 2; grid-row: 2; }
  .node-edaaai { grid-column: 1; grid-row: 3; }
  .node-rch2o { grid-column: 2; grid-row: 3; }
  .node-tito { grid-column: 1; grid-row: 4; }

  .agentic-node {
    min-height: 65px;
    padding: 0.5rem 0.625rem;
    font-size: 0.625rem;
    border-radius: 0.75rem;
  }
  
  .node-title {
    font-size: 0.75rem;
    margin-bottom: 0.125rem;
  }
  
  .node-subtitle {
    font-size: 0.5625rem;
    line-height: 1.2;
  }

  .agentic-annotation {
    padding: 0.75rem 0.875rem;
    font-size: 0.875rem;
  }
  
  .agentic-annotation .h6 {
    font-size: 0.8125rem;
  }
  
  .agentic-annotation .small {
    font-size: 0.75rem;
  }
}

/* ============================================
   PRINT STYLES
   ============================================ */

@media print {
  .agentic-hero-section {
    background: #fff;
    min-height: auto;
  }

  .agentic-hero-section::before {
    display: none;
  }

  .agentic-node {
    page-break-inside: avoid;
  }
}
