/**
 * KROT AI Sections
 * Styles for content sections (Problems, Solution, How It Works, etc.)
 * All sections use Bootstrap utilities + minimal custom styles
 */

/* ==========================================================================
   Section Base with Grid Pattern Background
   ========================================================================== */

.section-dark {
  position: relative;
  overflow-x: clip; /* Prevent horizontal scroll from decorative elements without creating scroll container */
}

/* Subtle grid pattern overlay */
.section-dark::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: var(--krot-grid-pattern);
  background-size: 50px 50px;
  pointer-events: none;
}

.section-dark .container {
  position: relative;
  z-index: 1;
}

/* ==========================================================================
   Problems Section - Card specific styles
   ========================================================================== */

#problems .section-header h2 {
  font-size: 2.5rem;
  font-weight: 700;
}

#problems .section-header h2::after {
  content: '';
  display: block;
  width: 60px;
  height: 4px;
  background: var(--krot-gradient-divider);
  border-radius: 2px;
  margin: 1rem auto 0;
}

#problems .card-body {
  text-align: center;
  padding: 2rem !important;
}

#problems .card-icon {
  margin: 0 auto 1.5rem;
}

/* ==========================================================================
   Problems Section - Background Glow Effects
   ========================================================================== */

/* Cold/Grey glow - top right corner */
#problems::after {
  content: '';
  position: absolute;
  top: -10%;
  right: -5%;
  width: 50%;
  height: 80%;
  background: radial-gradient(
    ellipse at center,
    rgba(148, 163, 184, 0.1) 0%,
    transparent 60%
  );
  animation: problems-glow-pulse 12s ease-in-out infinite;
  pointer-events: none;
  z-index: 0;
}

/* Slate glow - bottom left corner */
#problems .problems-glow-secondary {
  position: absolute;
  bottom: -15%;
  left: -10%;
  width: 40%;
  height: 60%;
  background: radial-gradient(
    ellipse at center,
    rgba(71, 85, 105, 0.15) 0%,
    transparent 60%
  );
  animation: problems-glow-pulse 15s ease-in-out infinite reverse;
  pointer-events: none;
  z-index: 0;
}

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

/* ==========================================================================
   Problems Section - Enhanced Card Hover Effects
   ========================================================================== */

#problems .card.card-glass {
  background: var(--krot-glass-bg);
  border: 1px solid var(--bs-border-color);
  border-radius: 1.25rem;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  height: 100%;
}

#problems .card.card-glass:hover {
  background: var(--krot-glass-bg-stronger);
  border-color: var(--krot-accent-glow);
  transform: translateY(-10px);
  box-shadow: var(--bs-box-shadow-lg);
}

/* Icon glow on card hover */
#problems .card.card-glass:hover .card-icon-danger-subtle {
  background: linear-gradient(135deg, #475569, #64748b);
  border-color: transparent;
  transform: scale(1.1) rotate(5deg);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
}

#problems .card.card-glass:hover .card-icon-danger-subtle i {
  color: var(--bs-body-bg);
}

/* Stop pulse animation on hover */
#problems .card.card-glass:hover .card-icon-danger-subtle::before {
  animation-play-state: paused;
  opacity: 0;
}

/* Title color shift on hover */
#problems .card.card-glass:hover .h5 {
  color: var(--bs-emphasis-color);
  transition: color var(--krot-transition-base);
}

/* ==========================================================================
   Problems Section - Card Icon Pulse Animation
   ========================================================================== */

#problems .card-icon-danger-subtle {
  position: relative;
  width: 72px;
  height: 72px;
  background: rgba(148, 163, 184, 0.05);
  border: 1px solid var(--bs-border-color);
  border-radius: 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

#problems .card-icon-danger-subtle i {
  font-size: 2rem;
  color: var(--bs-secondary-color);
  transition: all 0.3s ease;
}

/* Pulse ring effect - Monochrome */
#problems .card-icon-danger-subtle::before {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: inherit;
  background: transparent;
  border: 2px solid rgba(148, 163, 184, 0.15);
  animation: icon-pulse-ring 3s ease-in-out infinite;
  opacity: 0;
}

@keyframes icon-pulse-ring {
  0%, 100% {
    transform: scale(1);
    opacity: 0;
  }
  50% {
    transform: scale(1.15);
    opacity: 1;
  }
}

/* Staggered animation delays for each card */
#problems .col:nth-child(1) .card-icon-danger-subtle::before {
  animation-delay: 0s;
}
#problems .col:nth-child(2) .card-icon-danger-subtle::before {
  animation-delay: 0.75s;
}
#problems .col:nth-child(3) .card-icon-danger-subtle::before {
  animation-delay: 1.5s;
}
#problems .h5 {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--bs-emphasis-color);
}

#problems .text-body-secondary {
  font-size: 0.9375rem;
  line-height: 1.6;
  opacity: 0.8;
  color: var(--bs-secondary-color) !important;
}

/* ==========================================================================
   Problems Section - Accessibility & Responsive
   ========================================================================== */

/* Reduced motion: disable all animations */
@media (prefers-reduced-motion: reduce) {
  #problems::after,
  #problems .problems-glow-secondary {
    animation: none;
  }

  #problems .card-icon-danger-subtle::before {
    animation: none;
    opacity: 0;
  }
}

/* Mobile: reduce glow intensity */
@media (max-width: 767.98px) {
  #problems::after,
  #problems .problems-glow-secondary {
    opacity: 0.5;
  }
}

/* Problems CTA Button */
#problems .btn-outline-primary {
  border: 1px solid var(--bs-border-color);
  color: var(--bs-secondary-color);
  background: transparent;
  padding: 0.875rem 2rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  z-index: 1;
}

#problems .btn-outline-primary::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--krot-gradient-accent);
  opacity: 0;
  z-index: -1;
  transition: opacity 0.3s ease;
}

#problems .btn-outline-primary:hover {
  border-color: transparent;
  color: #fff;
  transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(6, 182, 212, 0.2);
}

#problems .btn-outline-primary:hover::before {
  opacity: 1;
}

#problems .btn-outline-primary i {
  transition: transform 0.3s ease;
}

#problems .btn-outline-primary:hover i {
  transform: translateX(4px);
}

/* ==========================================================================
   Solution Section - Pipeline Redesign
   ========================================================================== */

#solution {
  position: relative;
  overflow-x: clip;
}

/* Background Glow Effects (3 layers) */
#solution .solution-glow-primary {
  position: absolute;
  top: -15%;
  right: -10%;
  width: 55%;
  height: 90%;
  background: radial-gradient(ellipse at center, rgba(var(--krot-accent-rgb), 0.15) 0%, transparent 55%);
  animation: solution-glow-pulse 10s ease-in-out infinite;
  pointer-events: none;
  z-index: 0;
}

#solution .solution-glow-secondary {
  position: absolute;
  bottom: -20%;
  left: -12%;
  width: 50%;
  height: 80%;
  background: radial-gradient(ellipse at center, rgba(var(--krot-purple-rgb), 0.12) 0%, transparent 55%);
  animation: solution-glow-pulse 12s ease-in-out infinite reverse;
  pointer-events: none;
  z-index: 0;
}

#solution .solution-glow-center {
  position: absolute;
  top: 40%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 40%;
  height: 50%;
  background: radial-gradient(circle at center, rgba(var(--krot-accent-rgb), 0.1) 0%, rgba(var(--krot-purple-rgb), 0.08) 30%, transparent 60%);
  animation: solution-center-glow 8s ease-in-out infinite;
  pointer-events: none;
  z-index: 0;
}

@keyframes solution-glow-pulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.08); opacity: 0.85; }
}

@keyframes solution-center-glow {
  0%, 100% { transform: translate(-50%, -50%) scale(1); opacity: 0.7; }
  50% { transform: translate(-50%, -50%) scale(1.15); opacity: 1; }
}

/* --- Pipeline Container --- */
.solution-pipeline {
  position: relative;
  padding: 2rem 0 3rem;
  z-index: 1;
}

.pipeline-flow {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  flex-wrap: nowrap;
}

/* --- Pipeline Stages --- */
.pipeline-stage {
  flex: 0 0 auto;
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.solution-pipeline.initialized .pipeline-stage {
  opacity: 1;
  transform: translateY(0);
}

.pipeline-stage[data-stage="1"] { transition-delay: 0.1s; }
.pipeline-stage[data-stage="2"] { transition-delay: 0.3s; }
.pipeline-stage[data-stage="3"] { transition-delay: 0.5s; }

/* Stage Card Base */
.stage-card {
  background: var(--krot-glass-bg);
  border: 1px solid var(--krot-glass-border);
  border-radius: var(--bs-border-radius-xl);
  padding: 1.5rem;
  text-align: center;
  min-width: 180px;
  max-width: 220px;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: visible;
}

.stage-card:hover {
  transform: translateY(-8px);
  border-color: rgba(var(--krot-accent-rgb), 0.4);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3), 0 0 30px rgba(var(--krot-accent-rgb), 0.15);
}

.stage-content h4 {
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: 0.25rem;
  color: var(--bs-emphasis-color);
}

.stage-content p {
  font-size: 1rem;
  margin-bottom: 0;
}

/* --- Stage Icons --- */
.stage-icon {
  width: 64px;
  height: 64px;
  border-radius: var(--bs-border-radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
  position: relative;
  transition: all 0.4s ease;
}

.stage-icon i {
  font-size: 28px;
  position: relative;
  z-index: 2;
}

.stage-icon-input {
  background: rgba(var(--krot-danger-rgb), 0.15);
  border: 1px solid rgba(var(--krot-danger-rgb), 0.3);
}

.stage-icon-input i {
  color: var(--bs-danger);
}

.stage-icon-output {
  background: rgba(var(--bs-success-rgb), 0.15);
  border: 1px solid rgba(var(--bs-success-rgb), 0.3);
}

.stage-icon-output i {
  color: var(--bs-success);
}

/* Stage Pulse Animation */
.stage-pulse {
  position: absolute;
  inset: -5px;
  border-radius: inherit;
  border: 2px solid rgba(var(--krot-danger-rgb), 0.4);
  animation: stage-pulse-ring 3s ease-in-out infinite;
  opacity: 0;
}

.stage-pulse-success {
  border-color: rgba(var(--bs-success-rgb), 0.4);
}

@keyframes stage-pulse-ring {
  0%, 100% { transform: scale(1); opacity: 0; }
  50% { transform: scale(1.15); opacity: 0.8; }
}

/* Staggered pulse delays */
.pipeline-stage[data-stage="1"] .stage-pulse { animation-delay: 0s; }
.pipeline-stage[data-stage="3"] .stage-pulse { animation-delay: 1.5s; }

/* --- KROT AI Central Hero Stage --- */
.pipeline-stage-center {
  z-index: 10;
}

.stage-card-hero {
  min-width: 260px;
  max-width: 280px;
  padding: 1.75rem;
  background: var(--bs-secondary-bg);
  border: 2px solid transparent;
  background-clip: padding-box;
  position: relative;
}

/* Gradient border effect */
.stage-card-hero::before {
  content: '';
  position: absolute;
  inset: -2px;
  border-radius: inherit;
  background: var(--krot-gradient-accent);
  z-index: -1;
  opacity: 0.5;
  transition: opacity 0.4s ease;
}

.stage-card-hero:hover::before {
  opacity: 0.9;
}

.stage-card-hero:hover {
  transform: translateY(-10px) scale(1.02);
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.4), 0 0 50px rgba(var(--krot-accent-rgb), 0.25);
}

/* KROT AI Core Element */
.krot-ai-core {
  width: 100px;
  height: 100px;
  margin: 0 auto 1.25rem;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.krot-icon {
  width: 72px;
  height: 72px;
  background: var(--krot-gradient-accent);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 3;
  box-shadow: 0 10px 40px rgba(var(--krot-accent-rgb), 0.5), 0 0 60px rgba(var(--krot-purple-rgb), 0.3);
  transition: all 0.4s ease;
}

.stage-card-hero:hover .krot-icon {
  box-shadow: 0 15px 50px rgba(var(--krot-accent-rgb), 0.6), 0 0 80px rgba(var(--krot-purple-rgb), 0.4);
  transform: scale(1.08);
}

.krot-icon i {
  font-size: 32px;
  color: var(--bs-body-bg);
}

/* KROT Rotating Rings */
.krot-ring {
  position: absolute;
  border-radius: 50%;
  border: 2px dashed transparent;
}

.krot-ring-outer {
  inset: -12px;
  border-color: rgba(var(--krot-accent-rgb), 0.35);
  animation: krot-ring-rotate 20s linear infinite;
}

.krot-ring-inner {
  inset: -5px;
  border-color: rgba(var(--krot-purple-rgb), 0.35);
  animation: krot-ring-rotate 15s linear infinite reverse;
}

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

/* KROT Pulse Rings */
.krot-pulse-rings {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.krot-pulse {
  position: absolute;
  width: 72px;
  height: 72px;
  border-radius: 50%;
  border: 2px solid rgba(var(--krot-accent-rgb), 0.5);
  animation: krot-pulse-expand 3s ease-out infinite;
  animation-delay: var(--delay);
}

@keyframes krot-pulse-expand {
  0% { transform: scale(1); opacity: 0.7; }
  100% { transform: scale(2); opacity: 0; }
}

/* KROT AI Gradient Text */
.text-gradient-krot {
  background: linear-gradient(135deg, #06b6d4 0%, #8b5cf6 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-size: 1.375rem;
  font-weight: 700;
}

/* KROT Processing Steps */
.krot-processes {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-top: 1rem;
}

.krot-process {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  padding: 0.5rem 0.875rem;
  background: rgba(var(--krot-accent-rgb), 0.05);
  border-radius: var(--bs-border-radius);
  font-size: 1rem;
  color: var(--bs-secondary-color);
  transition: all 0.3s ease;
  opacity: 0.7;
  border: 1px solid transparent;
}

.krot-process i {
  color: var(--krot-accent);
  font-size: 0.9375rem;
  transition: all 0.3s ease;
}

.krot-process.active {
  background: rgba(var(--krot-accent-rgb), 0.12);
  border-color: rgba(var(--krot-accent-rgb), 0.25);
  color: var(--bs-body-color);
  opacity: 1;
  transform: translateX(4px);
}

.krot-process.active i {
  color: var(--krot-accent-light);
}

/* --- Pipeline Connectors --- */
.pipeline-connector {
  width: 80px;
  height: 4px;
  position: relative;
  display: flex;
  align-items: center;
}

.connector-line {
  width: 100%;
  height: 3px;
  background: rgba(var(--krot-accent-rgb), 0.2);
  border-radius: 2px;
  overflow: hidden;
  position: relative;
}

.connector-flow {
  width: 30%;
  height: 100%;
  background: var(--krot-gradient-accent);
  border-radius: 2px;
  animation: connector-flow 2s ease-in-out infinite;
}

@keyframes connector-flow {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(400%); }
}

/* Connector Particles */
.connector-particles {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.particle {
  position: absolute;
  width: 6px;
  height: 6px;
  background: var(--krot-accent);
  border-radius: 50%;
  top: 50%;
  transform: translateY(-50%);
  animation: particle-flow 3s ease-in-out infinite;
  animation-delay: var(--delay);
  box-shadow: 0 0 10px var(--krot-accent-glow);
}

@keyframes particle-flow {
  0% { left: -10px; opacity: 0; }
  15% { opacity: 1; }
  85% { opacity: 1; }
  100% { left: 90px; opacity: 0; }
}

/* --- Stage Items (Input/Output Data) --- */
.stage-items {
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
  margin-top: 1rem;
}

.stage-item {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.375rem 0.625rem;
  background: rgba(var(--krot-accent-rgb), 0.05);
  border-radius: var(--bs-border-radius-sm);
  font-size: 1rem;
  color: var(--bs-secondary-color);
  transition: all 0.3s ease;
  opacity: 0;
  transform: translateX(-8px);
}

.solution-pipeline.initialized .stage-item {
  opacity: 1;
  transform: translateX(0);
}

.pipeline-stage[data-stage="1"] .stage-item:nth-child(1) { transition-delay: 0.6s; }
.pipeline-stage[data-stage="1"] .stage-item:nth-child(2) { transition-delay: 0.7s; }
.pipeline-stage[data-stage="1"] .stage-item:nth-child(3) { transition-delay: 0.8s; }

.pipeline-stage[data-stage="3"] .stage-item:nth-child(1) { transition-delay: 0.9s; }
.pipeline-stage[data-stage="3"] .stage-item:nth-child(2) { transition-delay: 1.0s; }
.pipeline-stage[data-stage="3"] .stage-item:nth-child(3) { transition-delay: 1.1s; }

.stage-item i {
  font-size: 1rem;
}

.pipeline-stage[data-stage="1"] .stage-item i {
  color: var(--bs-danger);
}

.stage-items-output .stage-item i {
  color: var(--bs-success);
}

.stage-card:hover .stage-item {
  background: rgba(var(--krot-accent-rgb), 0.1);
}

/* Active stage highlight */
.pipeline-stage.active .stage-card {
  border-color: rgba(var(--krot-accent-rgb), 0.5);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.25), 0 0 25px rgba(var(--krot-accent-rgb), 0.2);
}

.pipeline-stage.completed .stage-icon {
  box-shadow: 0 0 20px rgba(var(--bs-success-rgb), 0.3);
}

/* --- Pipeline Progress Bar --- */
.pipeline-progress {
  margin-top: 2.5rem;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

.pipeline-progress-bar {
  height: 4px;
  background: rgba(var(--krot-accent-rgb), 0.15);
  border-radius: 2px;
  overflow: hidden;
  margin-bottom: 0.75rem;
  position: relative;
}

.pipeline-progress-bar::after {
  content: '';
  display: block;
  height: 100%;
  width: 0%;
  background: var(--krot-gradient-accent);
  border-radius: 2px;
  transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.solution-pipeline[data-progress="1"] .pipeline-progress-bar::after { width: 33.33%; }
.solution-pipeline[data-progress="2"] .pipeline-progress-bar::after { width: 66.66%; }
.solution-pipeline[data-progress="3"] .pipeline-progress-bar::after { width: 100%; }

.pipeline-progress-steps {
  display: flex;
  justify-content: space-between;
  font-size: 1rem;
  color: var(--bs-secondary-color);
}

.progress-step {
  transition: all 0.3s ease;
  padding: 0.25rem 0.5rem;
  border-radius: var(--bs-border-radius-sm);
}

.progress-step.active {
  color: var(--krot-accent);
  font-weight: 600;
  background: rgba(var(--krot-accent-rgb), 0.1);
}

.progress-step.completed {
  color: var(--bs-success);
}

/* --- Solution Metrics (compact/subtle) --- */
.solution-metrics {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 1.5rem;
  flex-wrap: wrap;
}

.solution-metric {
  background: var(--bs-tertiary-bg);
  border: 1px solid var(--bs-border-color);
  border-radius: var(--bs-border-radius);
  padding: 0.375rem 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.375rem;
  transition: all 0.3s ease;
}

.solution-metric:hover {
  background: var(--bs-secondary-bg);
  border-color: var(--bs-border-color);
}

.solution-metric i {
  font-size: 1rem;
  opacity: 0.6;
}

.solution-metric-speed i { color: var(--krot-accent); }
.solution-metric-depth i { color: var(--krot-purple); }
.solution-metric-accuracy i { color: var(--bs-success); }

.solution-metric .metric-value {
  font-size: 1rem;
  font-weight: 600;
  color: var(--bs-body-color);
}

.solution-metric .metric-label {
  font-size: 1rem;
  color: var(--bs-tertiary-color);
}

/* --- Solution Features Grid --- */
.solution-features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.feature-card {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1.25rem;
  background: var(--krot-glass-bg);
  border: 1px solid var(--krot-glass-border);
  border-radius: var(--bs-border-radius-lg);
  transition: all 0.3s ease;
}

.feature-card:hover {
  transform: translateY(-5px);
  border-color: rgba(var(--krot-accent-rgb), 0.3);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.feature-icon {
  width: 48px;
  height: 48px;
  background: rgba(var(--krot-accent-rgb), 0.1);
  border-radius: var(--bs-border-radius);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all 0.3s ease;
}

.feature-icon i {
  font-size: 1.25rem;
  color: var(--krot-accent);
  transition: all 0.3s ease;
}

.feature-card:hover .feature-icon {
  background: var(--krot-gradient-accent);
}

.feature-card:hover .feature-icon i {
  color: var(--bs-body-bg);
}

.feature-content h5 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.375rem;
  color: var(--bs-emphasis-color);
}

.feature-content p {
  font-size: 1rem;
  color: var(--bs-secondary-color);
  margin-bottom: 0;
  line-height: 1.5;
}

/* Section Header Underline */
#solution .section-header h2 {
  position: relative;
}

#solution .section-header h2::after {
  content: '';
  display: block;
  width: 80px;
  height: 4px;
  background: var(--krot-gradient-accent);
  border-radius: 2px;
  margin: 1rem auto 0;
  animation: solution-line-glow 3s ease-in-out infinite;
}

@keyframes solution-line-glow {
  0%, 100% { opacity: 0.8; box-shadow: 0 0 10px rgba(var(--krot-accent-rgb), 0.3); }
  50% { opacity: 1; box-shadow: 0 0 20px rgba(var(--krot-accent-rgb), 0.5); }
}

/* Solution CTA Button */
#solution .btn-primary {
  background: var(--krot-gradient-accent);
  border: none;
  padding: 1rem 2.5rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  box-shadow: 0 10px 30px rgba(6, 182, 212, 0.3);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

#solution .btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 20px 40px rgba(6, 182, 212, 0.4);
}

#solution .btn-primary i {
  transition: transform 0.3s ease;
}

#solution .btn-primary:hover i {
  transform: translateY(3px);
}

/* ==========================================================================
   Advantages Section - Enhanced with Hero-style animations
   ========================================================================== */

/* Background Glow Effects - Similar to Hero */
#advantages {
  position: relative;
  overflow-x: clip;
}

#advantages::after {
  content: '';
  position: absolute;
  top: -15%;
  right: -10%;
  width: 55%;
  height: 90%;
  background: radial-gradient(
    ellipse at center,
    rgba(var(--krot-accent-rgb), 0.18) 0%,
    transparent 55%
  );
  animation: advantages-glow-pulse 10s ease-in-out infinite;
  pointer-events: none;
  z-index: 0;
}

#advantages .advantages-glow-secondary {
  position: absolute;
  bottom: -20%;
  left: -12%;
  width: 50%;
  height: 80%;
  background: radial-gradient(
    ellipse at center,
    rgba(var(--krot-purple-rgb), 0.15) 0%,
    transparent 55%
  );
  animation: advantages-glow-pulse 12s ease-in-out infinite reverse;
  pointer-events: none;
  z-index: 0;
}

#advantages .advantages-glow-tertiary {
  position: absolute;
  top: 30%;
  left: 50%;
  transform: translateX(-50%);
  width: 40%;
  height: 40%;
  background: radial-gradient(
    circle at center,
    rgba(var(--krot-accent-rgb), 0.08) 0%,
    transparent 50%
  );
  animation: advantages-center-pulse 8s ease-in-out infinite;
  pointer-events: none;
  z-index: 0;
}

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

@keyframes advantages-center-pulse {
  0%, 100% { transform: translateX(-50%) scale(1); opacity: 0.5; }
  50% { transform: translateX(-50%) scale(1.2); opacity: 1; }
}

/* ==========================================================================
   Advantages Cards - Enhanced Hover & Animation Effects
   ========================================================================== */

#advantages .card.card-glass {
  background: var(--krot-glass-bg);
  border: 1px solid var(--bs-border-color);
  border-radius: 1.5rem;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  height: 100%;
}

/* Card hover lift effect */
#advantages .card.card-glass:hover {
  background: var(--krot-glass-bg-stronger);
  border-color: var(--krot-accent-glow);
  transform: translateY(-10px);
  box-shadow: var(--bs-box-shadow-lg);
}

/* Gradient overlay on hover */
#advantages .card.card-glass::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(6, 182, 212, 0.1) 0%, transparent 100%);
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
}

#advantages .card.card-glass:hover::before {
  opacity: 1;
}

/* ==========================================================================
   Advantages Card Icons - Premium Style
   ========================================================================== */

#advantages .card-icon {
  width: 64px;
  height: 64px;
  border-radius: 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  z-index: 1;
}

#advantages .card-icon i {
  font-size: 1.75rem;
  transition: all 0.3s ease;
}

/* Primary Icon Style (Cyan) */
#advantages .card-icon-primary {
  background: rgba(6, 182, 212, 0.1);
  border: 1px solid rgba(6, 182, 212, 0.2);
}

#advantages .card-icon-primary::after {
  background: linear-gradient(135deg, #06b6d4, #22d3ee);
}

#advantages .card-icon-primary i {
  color: #06b6d4;
}

/* Secondary Icon Style (Purple) */
#advantages .card-icon-secondary {
  background: rgba(139, 92, 246, 0.1);
  border: 1px solid rgba(139, 92, 246, 0.2);
}

#advantages .card-icon-secondary::after {
  background: linear-gradient(135deg, #8b5cf6, #a78bfa);
}

#advantages .card-icon-secondary i {
  color: #8b5cf6;
}

/* Gradient overlay for smooth transition */
#advantages .card-icon::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  opacity: 0;
  transition: opacity 0.4s ease;
  z-index: -1;
}

/* Hover Effects for Icons */
#advantages .card.card-glass:hover .card-icon {
  transform: scale(1.1) rotate(5deg);
  border-color: transparent;
}

#advantages .card.card-glass:hover .card-icon::after {
  opacity: 1;
}

#advantages .card.card-glass:hover .card-icon-primary {
  box-shadow: 0 10px 20px rgba(6, 182, 212, 0.3);
}

#advantages .card.card-glass:hover .card-icon-secondary {
  box-shadow: 0 10px 20px rgba(139, 92, 246, 0.3);
}

#advantages .card.card-glass:hover .card-icon i {
  color: #fff;
  z-index: 2; /* Ensure icon stays on top */
}

/* Typography */
#advantages .h5 {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  color: var(--bs-emphasis-color);
}

#advantages .text-body-secondary {
  font-size: 0.9375rem;
  line-height: 1.6;
  opacity: 0.8;
  color: var(--bs-secondary-color) !important;
}

/* ==========================================================================
   Advantages Floating Stats - Hero-style Metrics
   ========================================================================== */

/* Container needs position relative for metrics positioning */
#advantages .container {
  position: relative;
  z-index: 1;
}

/* Metrics row - horizontal layout above cards */
#advantages .advantages-metrics {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin-bottom: 2.5rem;
  flex-wrap: wrap;
}

#advantages .advantage-metric {
  background: var(--krot-glass-bg);
  border: 1px solid var(--bs-border-color);
  border-radius: 1.25rem;
  padding: 1.25rem 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  min-width: 160px;
  transition: all 0.3s ease;
  box-shadow: var(--bs-box-shadow);
}

#advantages .advantage-metric:hover {
  background: var(--krot-glass-bg-stronger);
  border-color: var(--krot-accent-glow);
  transform: translateY(-5px);
  box-shadow: var(--bs-box-shadow-lg);
}

#advantages .advantage-metric i {
  font-size: 2rem;
  margin-bottom: 0.75rem;
}

#advantages .advantage-metric-value {
  font-family: var(--krot-font-heading);
  font-size: 2rem;
  font-weight: 800;
  line-height: 1;
  margin-bottom: 0.25rem;
}

#advantages .advantage-metric small {
  font-size: 1rem;
  color: var(--bs-secondary-color);
}

/* Individual metric colors */
#advantages .advantage-metric-speed i {
  color: var(--krot-accent);
}

#advantages .advantage-metric-speed:hover {
  border-color: rgba(var(--krot-accent-rgb), 0.6);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3), 0 0 30px rgba(var(--krot-accent-rgb), 0.3);
}

#advantages .advantage-metric-depth i {
  color: var(--krot-purple);
}

#advantages .advantage-metric-depth .advantage-metric-value {
  background: linear-gradient(135deg, var(--krot-purple) 0%, var(--krot-purple-light) 100%);
  -webkit-background-clip: text;
  background-clip: text;
}

#advantages .advantage-metric-depth:hover {
  border-color: rgba(var(--krot-purple-rgb), 0.6);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3), 0 0 30px rgba(var(--krot-purple-rgb), 0.3);
}

#advantages .advantage-metric-accuracy i {
  color: var(--bs-warning);
}

#advantages .advantage-metric-accuracy .advantage-metric-value {
  background: linear-gradient(135deg, var(--bs-warning) 0%, #fbbf24 100%);
  -webkit-background-clip: text;
  background-clip: text;
}

#advantages .advantage-metric-accuracy:hover {
  border-color: rgba(var(--bs-warning-rgb), 0.6);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3), 0 0 30px rgba(var(--bs-warning-rgb), 0.3);
}

/* Floating animation */
@keyframes advantages-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

/* ==========================================================================
   Advantages Decorative Connection Lines
   ========================================================================== */

#advantages .advantages-grid {
  position: relative;
}

/* Subtle gradient line under section header */
#advantages .section-header h2::after {
  content: '';
  display: block;
  width: 100px;
  height: 4px;
  background: var(--krot-gradient-accent);
  border-radius: 2px;
  margin: 1rem auto 0;
  animation: header-line-glow 3s ease-in-out infinite;
}

@keyframes header-line-glow {
  0%, 100% { opacity: 0.8; box-shadow: 0 0 10px rgba(var(--krot-accent-rgb), 0.3); }
  50% { opacity: 1; box-shadow: 0 0 20px rgba(var(--krot-accent-rgb), 0.5); }
}

/* ==========================================================================
   Advantages Interactive Grid Highlight
   ========================================================================== */

/* Grid cells have subtle border glow on mouse approach */
#advantages .card.card-glass::after {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  background: linear-gradient(
    135deg,
    rgba(var(--krot-accent-rgb), 0) 0%,
    rgba(var(--krot-accent-rgb), 0.1) 50%,
    rgba(var(--krot-purple-rgb), 0) 100%
  );
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
  z-index: -1;
}

#advantages .card.card-glass:hover::after {
  opacity: 1;
}

/* ==========================================================================
   Advantages Section - Accessibility & Responsive
   ========================================================================== */

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
  #advantages::after,
  #advantages .advantages-glow-secondary,
  #advantages .advantages-glow-tertiary,
  #advantages .card-icon::before,
  #advantages .advantage-metric,
  #advantages .section-header h2::after {
    animation: none;
  }

  #advantages .card.card-glass:hover {
    transform: translateY(-4px);
  }

  #advantages .card.card-glass:hover .card-icon {
    transform: scale(1.05);
  }
}

/* Tablet: smaller metrics */
@media (max-width: 991.98px) {
  #advantages .advantages-metrics {
    gap: 1rem;
    margin-bottom: 2rem;
  }

  #advantages .advantage-metric {
    padding: 0.875rem 1.25rem;
    min-width: 110px;
  }

  #advantages .advantage-metric-value {
    font-size: 1.25rem;
  }

  #advantages::after,
  #advantages .advantages-glow-secondary,
  #advantages .advantages-glow-tertiary {
    opacity: 0.5;
  }

  #advantages .card.card-glass:hover {
    transform: translateY(-6px);
  }
}

/* Mobile: compact metrics row */
@media (max-width: 767.98px) {
  #advantages .advantages-metrics {
    gap: 0.75rem;
    margin-bottom: 1.5rem;
  }

  #advantages .advantage-metric {
    padding: 0.75rem 1rem;
    min-width: 100px;
  }

  #advantages .advantage-metric i {
    font-size: 1.25rem;
  }

  #advantages .advantage-metric-value {
    font-size: 1.125rem;
  }

  #advantages .advantage-metric small {
    font-size: 1rem;
  }

  #advantages::after,
  #advantages .advantages-glow-secondary {
    opacity: 0.4;
  }

  #advantages .advantages-glow-tertiary {
    display: none;
  }

  #advantages .card-icon::before {
    animation: none;
  }
}

/* Small mobile: stack metrics */
@media (max-width: 480px) {
  #advantages .advantages-metrics {
    flex-direction: row;
    justify-content: space-around;
  }

  #advantages .advantage-metric {
    flex: 1;
    min-width: 80px;
    padding: 0.625rem 0.5rem;
  }
}

/* ==========================================================================
   Comparison Section - Table wrapper
   ========================================================================== */

/* ==========================================================================
   Cases Section
   ========================================================================== */
#cases {
  position: relative;
}

.case-card {
  background: var(--krot-glass-bg);
  border: 1px solid var(--bs-border-color);
  border-radius: 1.5rem;
  padding: 2rem;
  height: 100%;
  display: flex;
  flex-direction: column;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.case-card:hover {
  background: var(--krot-glass-bg-stronger);
  border-color: var(--krot-accent-glow);
  transform: translateY(-10px);
  box-shadow: var(--bs-box-shadow-lg);
}

.case-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.case-icon-wrapper {
  width: 56px;
  height: 56px;
  border-radius: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  flex-shrink: 0;
}

.case-icon-wrapper.warning { background: rgba(245, 158, 11, 0.1); color: #f59e0b; border: 1px solid rgba(245, 158, 11, 0.2); }
.case-icon-wrapper.danger { background: rgba(239, 68, 68, 0.1); color: #ef4444; border: 1px solid rgba(239, 68, 68, 0.2); }
.case-icon-wrapper.info { background: rgba(59, 130, 246, 0.1); color: #3b82f6; border: 1px solid rgba(59, 130, 246, 0.2); }

.case-meta h4 {
  font-size: 1.125rem;
  font-weight: 700;
  margin: 0 0 0.25rem;
  color: var(--bs-emphasis-color);
}

.case-body {
  flex-grow: 1;
}

.case-block small {
  letter-spacing: 0.05em;
}

.case-footer {
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--bs-border-color);
}

.case-result {
  display: flex;
  flex-direction: column;
}

.result-value {
  font-family: var(--krot-font-heading);
  font-size: 2.5rem;
  font-weight: 800;
  line-height: 1;
  margin-bottom: 0.25rem;
  background: linear-gradient(135deg, #06b6d4, #22d3ee);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.result-label {
  font-size: 0.875rem;
  color: var(--bs-secondary-color);
  font-weight: 500;
}

/* ==========================================================================
   Comparison Section
   ========================================================================== */

#comparison {
  position: relative;
  overflow: hidden;
}

#comparison::before {
  content: '';
  position: absolute;
  top: -20%;
  left: 50%;
  transform: translateX(-50%);
  width: 80%;
  height: 80%;
  background: radial-gradient(ellipse at center, rgba(6, 182, 212, 0.08) 0%, transparent 60%);
  pointer-events: none;
  z-index: 0;
}

#comparison .table-wrapper {
  border-radius: var(--bs-border-radius-lg);
  overflow: hidden;
  max-width: 100%;
  background: var(--krot-glass-bg);
  border: 1px solid var(--bs-border-color);
  box-shadow: var(--bs-box-shadow-lg);
}

/* Fix table overflow on mobile */
#comparison .table-responsive {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  max-width: 100%;
}

/* ==========================================================================
   Comparison Section - Mobile Optimization
   ========================================================================== */

@media (max-width: 991.98px) {
  /* Visual cue for scrolling (fade on the right) */
  #comparison .table-wrapper::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    right: 0;
    width: 40px;
    background: linear-gradient(to left, rgba(6, 182, 212, 0.15), transparent);
    pointer-events: none;
    z-index: 5;
    border-right: 1px solid rgba(6, 182, 212, 0.3);
    border-radius: 0 1.5rem 1.5rem 0;
  }

  /* Hint container */
  .mobile-table-hint {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    margin-top: 1rem;
    padding: 0.75rem;
    background: var(--bs-tertiary-bg);
    border: 1px solid var(--bs-border-color);
    border-radius: 1rem;
    color: var(--bs-secondary-color);
    font-size: 0.875rem;
    font-weight: 500;
    animation: hint-fade-in 1s ease-out;
  }

  .mobile-table-hint i {
    color: var(--krot-accent);
    font-size: 1.25rem;
    animation: swipe-anim 2s ease-in-out infinite;
  }

  @keyframes swipe-anim {
    0%, 100% { transform: translateX(0); opacity: 0.5; }
    50% { transform: translateX(5px); opacity: 1; }
  }
  
  @keyframes hint-fade-in {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
  }
}

/* ==========================================================================
   Solution Section - Responsive & Accessibility
   ========================================================================== */

/* Tablet: adjust pipeline layout */
@media (max-width: 991.98px) {
  .pipeline-flow {
    flex-direction: column;
    gap: 0;
  }

  .pipeline-connector {
    width: 4px;
    height: 50px;
    flex-direction: column;
  }

  .connector-line {
    width: 3px;
    height: 100%;
  }

  .connector-flow {
    width: 100%;
    height: 30%;
    animation: connector-flow-vertical 2s ease-in-out infinite;
  }

  .particle {
    left: 50%;
    transform: translateX(-50%);
    top: auto;
    animation: particle-flow-vertical 3s ease-in-out infinite;
  }

  .stage-card {
    min-width: 220px;
    max-width: 280px;
  }

  .stage-card-hero {
    min-width: 280px;
    max-width: 320px;
  }

  .solution-features-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .solution-metrics {
    gap: 0.375rem;
  }

  #solution .solution-glow-primary,
  #solution .solution-glow-secondary,
  #solution .solution-glow-center {
    opacity: 0.6;
  }
}

@keyframes connector-flow-vertical {
  0% { transform: translateY(-100%); }
  100% { transform: translateY(400%); }
}

@keyframes particle-flow-vertical {
  0% { top: -10px; opacity: 0; }
  15% { opacity: 1; }
  85% { opacity: 1; }
  100% { top: 60px; opacity: 0; }
}

/* Mobile: compact layout */
@media (max-width: 767.98px) {
  .stage-card {
    min-width: 100%;
    max-width: 100%;
    padding: 1.25rem;
  }

  .stage-card-hero {
    min-width: 100%;
    max-width: 100%;
    padding: 1.5rem;
  }

  .krot-ai-core {
    width: 80px;
    height: 80px;
  }

  .krot-icon {
    width: 60px;
    height: 60px;
  }

  .krot-icon i {
    font-size: 26px;
  }

  .krot-ring-outer {
    inset: -10px;
  }

  .krot-ring-inner {
    inset: -4px;
  }

  .krot-pulse {
    width: 60px;
    height: 60px;
  }

  .text-gradient-krot {
    font-size: 1.25rem;
  }

  .krot-process {
    padding: 0.375rem 0.75rem;
    font-size: 1rem;
  }

  .stage-icon {
    width: 56px;
    height: 56px;
  }

  .stage-icon i {
    font-size: 24px;
  }

  .pipeline-connector {
    height: 40px;
  }

  .solution-metrics {
    gap: 0.375rem;
    margin-top: 1.25rem;
  }

  .feature-card {
    padding: 1rem;
  }

  .feature-icon {
    width: 40px;
    height: 40px;
  }

  .feature-icon i {
    font-size: 1rem;
  }

  .feature-content h5 {
    font-size: 0.9375rem;
  }

  .feature-content p {
    font-size: 1rem;
  }

  #solution .solution-glow-primary,
  #solution .solution-glow-secondary {
    opacity: 0.4;
  }

  #solution .solution-glow-center {
    display: none;
  }

  .pipeline-progress {
    margin-top: 2rem;
  }
}

/* Small mobile */
@media (max-width: 480px) {
  .solution-metrics {
    justify-content: center;
  }

  .solution-metric {
    padding: 0.25rem 0.5rem;
  }

  .solution-metric .metric-value {
    font-size: 1rem;
  }

  .solution-metric .metric-label {
    font-size: 1rem;
  }

  .krot-processes {
    gap: 0.375rem;
  }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
  #solution .solution-glow-primary,
  #solution .solution-glow-secondary,
  #solution .solution-glow-center,
  .krot-ring,
  .krot-pulse,
  .connector-flow,
  .particle,
  .solution-metric,
  .stage-pulse,
  #solution .section-header h2::after {
    animation: none;
  }

  .pipeline-stage {
    opacity: 1;
    transform: none;
  }

  .stage-item {
    opacity: 1;
    transform: none;
  }

  .solution-pipeline.initialized .pipeline-stage,
  .solution-pipeline.initialized .stage-item {
    transition: none;
  }

  .krot-icon {
    box-shadow: 0 10px 30px rgba(var(--krot-accent-rgb), 0.4);
  }

  .stage-card:hover,
  .stage-card-hero:hover {
    transform: translateY(-4px);
  }

  .solution-metric:hover {
    transform: translateY(-4px);
  }
}


/* ==========================================================================
   HOW IT WORKS SECTION - Complete Redesign
   Premium process flow with interactive animations
   ========================================================================== */

/* ==========================================================================
   1. Section Base & Background Glow Effects
   ========================================================================== */

#how-it-works {
  position: relative;
  overflow-x: clip;
}

/* Primary glow - top right (cyan) */
#how-it-works .hiw-glow-primary {
  position: absolute;
  top: -20%;
  right: -15%;
  width: 60%;
  height: 100%;
  background: radial-gradient(
    ellipse at center,
    rgba(var(--krot-accent-rgb), 0.2) 0%,
    transparent 55%
  );
  animation: hiw-glow-float 12s ease-in-out infinite;
  pointer-events: none;
  z-index: 0;
}

/* Secondary glow - bottom left (purple) */
#how-it-works .hiw-glow-secondary {
  position: absolute;
  bottom: -25%;
  left: -15%;
  width: 55%;
  height: 90%;
  background: radial-gradient(
    ellipse at center,
    rgba(var(--krot-purple-rgb), 0.15) 0%,
    transparent 55%
  );
  animation: hiw-glow-float 15s ease-in-out infinite reverse;
  pointer-events: none;
  z-index: 0;
}

/* Center glow (accent) */
#how-it-works .hiw-glow-center {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 50%;
  height: 60%;
  background: radial-gradient(
    circle at center,
    rgba(var(--krot-accent-rgb), 0.12) 0%,
    rgba(var(--krot-purple-rgb), 0.08) 30%,
    transparent 60%
  );
  animation: hiw-center-pulse 8s ease-in-out infinite;
  pointer-events: none;
  z-index: 0;
}

@keyframes hiw-glow-float {
  0%, 100% { transform: scale(1) translateY(0); opacity: 1; }
  50% { transform: scale(1.15) translateY(-20px); opacity: 0.85; }
}

@keyframes hiw-center-pulse {
  0%, 100% { transform: translate(-50%, -50%) scale(1); opacity: 0.7; }
  50% { transform: translate(-50%, -50%) scale(1.2); opacity: 1; }
}

/* Ensure container is above glow */
#how-it-works .container {
  position: relative;
  z-index: 1;
}

/* Section Header with gradient underline */
#how-it-works .section-header h2::after {
  content: '';
  display: block;
  width: 100px;
  height: 4px;
  background: var(--krot-gradient-accent);
  border-radius: 2px;
  margin: 1rem auto 0;
  animation: hiw-line-glow 3s ease-in-out infinite;
}

@keyframes hiw-line-glow {
  0%, 100% { opacity: 0.8; box-shadow: 0 0 15px rgba(var(--krot-accent-rgb), 0.4); }
  50% { opacity: 1; box-shadow: 0 0 30px rgba(var(--krot-accent-rgb), 0.6); }
}

/* ==========================================================================
   2. Process Flow Container
   ========================================================================== */

.hiw-process-flow {
  position: relative;
  padding: 3rem 1.5rem;
  overflow: visible;
}

.hiw-flow-wrapper {
  display: flex;
  align-items: stretch;
  justify-content: center;
  gap: 0;
  flex-wrap: nowrap;
  padding: 1.5rem 0;
}

/* ==========================================================================
   3. Step Cards - Base Styles
   ========================================================================== */

.hiw-step {
  display: flex;
  align-items: center;
  flex: 0 0 auto;
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Staggered entrance animation delays */
.hiw-process-flow.initialized .hiw-step {
  opacity: 1;
  transform: translateY(0);
}

.hiw-step[data-step="1"] { transition-delay: 0.1s; }
.hiw-step[data-step="2"] { transition-delay: 0.25s; }
.hiw-step[data-step="3"] { transition-delay: 0.4s; }
.hiw-step[data-step="4"] { transition-delay: 0.55s; }
.hiw-step[data-step="5"] { transition-delay: 0.7s; }

.hiw-step-card {
  position: relative;
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 1.5rem;
  padding: 1.75rem 1.5rem;
  min-width: 200px;
  max-width: 220px;
  text-align: center;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  overflow: visible; /* Fixed clipping issue */
}

.hiw-step-card:hover,
.hiw-step.active .hiw-step-card {
  transform: translateY(-12px) scale(1.03);
  background: rgba(15, 23, 42, 0.8);
  border-color: rgba(6, 182, 212, 0.3);
  box-shadow:
    0 25px 50px rgba(0, 0, 0, 0.4),
    0 0 40px rgba(6, 182, 212, 0.1);
}

/* Active state specific */
.hiw-step.active .hiw-step-card {
  border-color: rgba(6, 182, 212, 0.5);
  box-shadow:
    0 25px 50px rgba(0, 0, 0, 0.5),
    0 0 50px rgba(6, 182, 212, 0.15);
}

/* Step Number Badge */
.hiw-step-number {
  position: absolute;
  top: -12px;
  right: -12px;
  width: 40px;
  height: 40px;
  background: rgba(30, 41, 59, 1);
  border: 2px solid rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--krot-font-heading);
  font-size: 1rem;
  font-weight: 700;
  color: var(--bs-secondary-color);
  z-index: 5;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  transition: all 0.4s ease;
}

.hiw-step.active .hiw-step-number,
.hiw-step.completed .hiw-step-number {
  background: var(--krot-gradient-accent);
  border-color: transparent;
  color: #fff;
  box-shadow: 0 5px 20px rgba(6, 182, 212, 0.4);
}

.hiw-step-card:hover .hiw-step-number {
  transform: scale(1.1);
}

.step-number-glow {
  position: absolute;
  inset: -3px;
  border-radius: 50%;
  background: var(--krot-gradient-accent);
  opacity: 0;
  filter: blur(8px);
  z-index: -1;
  transition: opacity 0.4s ease;
}

.hiw-step-card:hover .step-number-glow {
  opacity: 0.6;
}

/* ==========================================================================
   4. Step Icons
   ========================================================================== */

.hiw-step-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 1.25rem;
  background: rgba(6, 182, 212, 0.05);
  border: 1px solid rgba(6, 182, 212, 0.15);
  border-radius: 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  transition: all 0.4s ease;
  overflow: hidden;
}

/* Gradient overlay for smooth transition */
.hiw-step-icon::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, #06b6d4, #22d3ee);
  opacity: 0;
  transition: opacity 0.4s ease;
  z-index: 1;
}

.hiw-step-icon i {
  font-size: 1.75rem;
  color: #06b6d4;
  transition: all 0.4s ease;
  position: relative;
  z-index: 2;
}

.hiw-step-card:hover .hiw-step-icon,
.hiw-step.active .hiw-step-icon {
  border-color: transparent;
  transform: scale(1.1);
  box-shadow: 0 10px 30px rgba(6, 182, 212, 0.3);
}

.hiw-step-card:hover .hiw-step-icon::after,
.hiw-step.active .hiw-step-icon::after {
  opacity: 1;
}

.hiw-step-card:hover .hiw-step-icon i,
.hiw-step.active .hiw-step-icon i {
  color: #fff;
}

/* Icon Variants */
.hiw-step-icon-secondary {
  background: rgba(139, 92, 246, 0.05);
  border-color: rgba(139, 92, 246, 0.15);
}

.hiw-step-icon-secondary::after {
  background: linear-gradient(135deg, #8b5cf6, #a78bfa);
}

.hiw-step-icon-secondary i {
  color: #8b5cf6;
}

.hiw-step-card:hover .hiw-step-icon-secondary,
.hiw-step.active .hiw-step-icon-secondary {
  box-shadow: 0 10px 30px rgba(139, 92, 246, 0.3);
}

.hiw-step-icon-success {
  background: rgba(34, 197, 94, 0.05);
  border-color: rgba(34, 197, 94, 0.15);
}

.hiw-step-icon-success::after {
  background: linear-gradient(135deg, #22c55e, #4ade80);
}

.hiw-step-icon-success i {
  color: #22c55e;
}

.hiw-step-card:hover .hiw-step-icon-success,
.hiw-step.active .hiw-step-icon-success {
  box-shadow: 0 10px 30px rgba(34, 197, 94, 0.3);
}

/* ==========================================================================
   5. Step Content
   ========================================================================== */

.hiw-step-content h4 {
  font-size: 1.0625rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--bs-emphasis-color);
  transition: color var(--krot-transition-base);
}

.hiw-step-card:hover .hiw-step-content h4 {
  color: var(--krot-accent);
}

.hiw-step-content p {
  font-size: 1rem;
  color: var(--bs-secondary-color);
  margin-bottom: 0;
  line-height: 1.5;
}

/* Step Tags */
.hiw-step-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.375rem;
  justify-content: center;
  margin-top: 0.875rem;
}

.step-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.25rem 0.625rem;
  background: rgba(var(--krot-accent-rgb), 0.08);
  border-radius: var(--bs-border-radius-pill);
  font-size: 1rem;
  color: var(--bs-secondary-color);
  transition: all 0.3s ease;
}

.step-tag i {
  font-size: 1rem;
  color: var(--krot-accent);
}

.hiw-step-card:hover .step-tag {
  background: rgba(var(--krot-accent-rgb), 0.15);
  color: var(--bs-body-color);
}

/* ==========================================================================
   6. Connectors Between Steps
   ========================================================================== */

.hiw-connector {
  width: 60px;
  height: 4px;
  position: relative;
  display: flex;
  align-items: center;
  margin: 0 0.25rem;
}

.connector-line {
  width: 100%;
  height: 2px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 2px;
  position: relative;
  overflow: hidden;
}

.connector-line::after {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  width: 40%;
  background: linear-gradient(90deg, transparent, #06b6d4, transparent);
  border-radius: 2px;
  animation: connector-flow 2s ease-in-out infinite;
  box-shadow: 0 0 10px rgba(6, 182, 212, 0.5);
  will-change: transform, opacity;
}

@keyframes connector-flow {
  0% { transform: translateX(-100%); opacity: 0; }
  20% { opacity: 1; }
  80% { opacity: 1; }
  100% { transform: translateX(250%); opacity: 0; } /* 250% because width is 40% of parent */
}

.connector-particles {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.connector-particles .particle {
  position: absolute;
  width: 4px;
  height: 4px;
  background: #fff;
  border-radius: 50%;
  top: 50%;
  left: 0; /* Start from left edge */
  margin-top: -2px; /* Center vertically */
  box-shadow: 0 0 8px rgba(6, 182, 212, 0.8);
  animation: particle-flow-horizontal 3s ease-in-out infinite;
  will-change: transform, opacity;
}

@keyframes particle-flow-horizontal {
  0% { transform: translateX(-10px); opacity: 0; }
  10% { opacity: 1; }
  90% { opacity: 1; }
  100% { transform: translateX(60px); opacity: 0; } /* Assuming connector width is ~60px */
}

.connector-particles .particle:nth-child(1) { animation-delay: 0s; }
.connector-particles .particle:nth-child(2) { animation-delay: 1s; }
.connector-particles .particle:nth-child(3) { animation-delay: 2s; }

@keyframes particle-flow-horizontal {
  0% { transform: translateX(0); opacity: 0; }
  10% { opacity: 1; }
  90% { opacity: 1; }
  100% { transform: translateX(100%); opacity: 0; }
}

.connector-arrow {
  position: absolute;
  right: -8px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--krot-accent);
  font-size: 1rem;
  opacity: 0.6;
  animation: arrow-pulse 2s ease-in-out infinite;
}

@keyframes arrow-pulse {
  0%, 100% { opacity: 0.4; transform: translateY(-50%) translateX(0); }
  50% { opacity: 1; transform: translateY(-50%) translateX(3px); }
}

/* ==========================================================================
   7. KROT AI Central Card - Hero Element
   ========================================================================== */

.hiw-step-hero {
  z-index: 10;
}

.hiw-krot-card {
  min-width: 260px;
  max-width: 280px;
  padding: 2rem;
  background: linear-gradient(145deg, rgba(15, 23, 42, 0.95), rgba(30, 41, 59, 0.95));
  border: 1px solid rgba(6, 182, 212, 0.3);
  border-radius: 2rem;
  position: relative;
  box-shadow:
    0 20px 60px rgba(0, 0, 0, 0.5),
    inset 0 0 30px rgba(6, 182, 212, 0.05); /* Inner glow */
  overflow: hidden; /* Keep overflow hidden for internal effects */
}

/* Gradient border effect */
.hiw-krot-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 2rem;
  padding: 2px; /* Border width */
  background: linear-gradient(135deg, #06b6d4, #8b5cf6);
  -webkit-mask:
     linear-gradient(#fff 0 0) content-box,
     linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0.6;
  transition: opacity 0.4s ease;
  pointer-events: none;
}

.hiw-krot-card:hover::before,
.hiw-step.active .hiw-krot-card::before {
  opacity: 0.8;
  filter: blur(15px);
}

.hiw-krot-card:hover,
.hiw-step.active .hiw-krot-card {
  transform: translateY(-15px) scale(1.05);
  box-shadow:
    0 30px 60px rgba(0, 0, 0, 0.6),
    0 0 60px rgba(6, 182, 212, 0.2);
  border-color: rgba(6, 182, 212, 0.6);
}

/* KROT AI Core Animation Element */
.hiw-krot-core {
  width: 110px;
  height: 110px;
  margin: 0 auto 1.25rem;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.krot-center {
  position: relative;
  z-index: 3;
}

.krot-icon-wrapper {
  width: 70px;
  height: 70px;
  background: var(--krot-gradient-accent);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow:
    0 10px 40px rgba(var(--krot-accent-rgb), 0.5),
    0 0 60px rgba(var(--krot-purple-rgb), 0.3);
  transition: all 0.4s ease;
}

.krot-icon-wrapper i {
  font-size: 2rem;
  color: var(--bs-body-bg);
}

.hiw-krot-card:hover .krot-icon-wrapper {
  transform: scale(1.1);
  box-shadow:
    0 15px 50px rgba(var(--krot-accent-rgb), 0.6),
    0 0 80px rgba(var(--krot-purple-rgb), 0.4);
}

/* KROT Pulse Rings */
.krot-pulse-ring {
  position: absolute;
  inset: 0;
  width: 70px;
  height: 70px;
  border-radius: 50%;
  border: 2px solid rgba(var(--krot-accent-rgb), 0.5);
  animation: krot-pulse-expand 3s ease-out infinite;
  will-change: transform, opacity;
}

.krot-pulse-ring-2 {
  animation-delay: 1s;
}

.krot-pulse-ring-3 {
  animation-delay: 2s;
}

@keyframes krot-pulse-expand {
  0% { transform: scale(1); opacity: 0.8; }
  100% { transform: scale(2.2); opacity: 0; }
}

/* KROT Orbiting Rings */
.krot-orbit {
  position: absolute;
  border-radius: 50%;
  border: 2px dashed transparent;
  will-change: transform;
}

.krot-orbit-1 {
  inset: -8px;
  border-color: rgba(var(--krot-accent-rgb), 0.4);
  animation: krot-orbit-rotate 20s linear infinite;
}

.krot-orbit-2 {
  inset: -18px;
  border-color: rgba(var(--krot-purple-rgb), 0.3);
  animation: krot-orbit-rotate 15s linear infinite reverse;
}

.krot-orbit-3 {
  inset: -28px;
  border-color: rgba(var(--krot-accent-rgb), 0.2);
  animation: krot-orbit-rotate 25s linear infinite;
}

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

/* KROT AI Title with Gradient */
.hiw-krot-title {
  font-size: 1.5rem !important;
  font-weight: 700 !important;
  background: linear-gradient(135deg, #06b6d4 0%, #8b5cf6 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 0.25rem !important;
  transition: all 0.3s ease;
}

.hiw-krot-card:hover .hiw-krot-title {
  background: #fff;
  -webkit-background-clip: text;
  background-clip: text;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

/* KROT Card subtitle - high contrast */
.hiw-krot-card .hiw-step-content p {
  color: rgba(255, 255, 255, 0.85);
}

/* KROT Processes */
.hiw-krot-processes {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-top: 1rem;
}

.krot-process-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.75rem;
  background: rgba(15, 23, 42, 0.75);
  border-radius: var(--bs-border-radius);
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.9);
  transition: all 0.4s ease;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.krot-process-item i {
  font-size: 1rem;
  color: var(--krot-accent);
  transition: all 0.3s ease;
}

.krot-process-item.active {
  background: rgba(15, 23, 42, 0.8);
  border-color: rgba(var(--krot-accent-rgb), 0.5);
  color: #fff;
  transform: translateX(5px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.krot-process-item.active i {
  color: var(--krot-accent-light);
}

.hiw-krot-card:hover .krot-process-item {
  background: rgba(15, 23, 42, 0.7);
  border-color: rgba(255, 255, 255, 0.15);
}

/* ==========================================================================
   8. Progress Indicator
   ========================================================================== */

.hiw-progress {
  max-width: 600px;
  margin: 3rem auto 0;
}

.hiw-progress-track {
  height: 4px;
  background: rgba(var(--krot-accent-rgb), 0.15);
  border-radius: 2px;
  position: relative;
  overflow: hidden;
  margin-bottom: 1rem;
}

.hiw-progress-fill {
  height: 100%;
  width: 0%;
  background: var(--krot-gradient-accent);
  border-radius: 2px;
  transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 0 10px rgba(var(--krot-accent-rgb), 0.5);
}

/* Progress states */
.hiw-process-flow[data-progress="1"] .hiw-progress-fill { width: 10%; }
.hiw-process-flow[data-progress="2"] .hiw-progress-fill { width: 30%; }
.hiw-process-flow[data-progress="3"] .hiw-progress-fill { width: 50%; }
.hiw-process-flow[data-progress="4"] .hiw-progress-fill { width: 75%; }
.hiw-process-flow[data-progress="5"] .hiw-progress-fill { width: 100%; }

.hiw-progress-steps {
  display: flex;
  justify-content: space-between;
  padding: 0 0.5rem;
}

.hiw-progress-dot {
  width: 40px; /* Larger touch target */
  height: 40px;
  border-radius: 50%;
  background: rgba(30, 41, 59, 0.8);
  border: 2px solid rgba(148, 163, 184, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  z-index: 2;
}

.hiw-progress-dot span {
  font-size: 1rem;
  font-weight: 700;
  color: rgba(148, 163, 184, 0.8);
  transition: all 0.3s ease;
}

.hiw-progress-dot:hover {
  border-color: rgba(6, 182, 212, 0.5);
  background: rgba(30, 41, 59, 1);
  transform: scale(1.1);
  box-shadow: 0 0 15px rgba(6, 182, 212, 0.2);
}

.hiw-progress-dot:hover span {
  color: #fff;
}

.hiw-progress-dot.active {
  background: var(--krot-gradient-accent);
  border-color: transparent;
  box-shadow: 0 0 25px rgba(6, 182, 212, 0.4);
  transform: scale(1.15);
}

.hiw-progress-dot.active span {
  color: var(--bs-body-bg);
}

.hiw-progress-dot.completed {
  background: var(--bs-success);
  border-color: transparent;
}

.hiw-progress-dot.completed span {
  color: var(--bs-body-bg);
}

/* KROT dot special styling */
.hiw-progress-dot-krot {
  width: 40px;
  height: 40px;
}

.hiw-progress-dot-krot span i {
  font-size: 1rem;
}

.hiw-progress-dot-krot.active {
  box-shadow:
    0 0 30px rgba(var(--krot-accent-rgb), 0.5),
    0 0 60px rgba(var(--krot-purple-rgb), 0.3);
}

/* ==========================================================================
   9. Floating Metrics
   ========================================================================== */

.hiw-floating-metrics {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin-top: 2.5rem;
  flex-wrap: wrap;
}

.hiw-metric {
  background: var(--krot-glass-bg);
  border: 1px solid var(--krot-glass-border);
  border-radius: var(--bs-border-radius-lg);
  padding: 1rem 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  min-width: 130px;
  transition: all 0.4s ease;
  animation: metric-float 6s ease-in-out infinite;
  will-change: transform;
}

.hiw-metric:nth-child(2) { animation-delay: 1s; }
.hiw-metric:nth-child(3) { animation-delay: 2s; }

@keyframes metric-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

.hiw-metric:hover {
  transform: translateY(-10px) scale(1.05);
  border-color: rgba(var(--krot-accent-rgb), 0.5);
  box-shadow:
    0 20px 40px rgba(0, 0, 0, 0.3),
    0 0 30px rgba(var(--krot-accent-rgb), 0.2);
}

.hiw-metric i {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}

.hiw-metric-time i { color: var(--krot-accent); }
.hiw-metric-depth i { color: var(--krot-purple); }
.hiw-metric-accuracy i { color: var(--bs-success); }

.hiw-metric-value {
  font-family: var(--krot-font-heading);
  font-size: 1.375rem;
  font-weight: 700;
  background: var(--krot-gradient-accent);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1.2;
}

.hiw-metric-depth .hiw-metric-value {
  background: linear-gradient(135deg, var(--krot-purple) 0%, var(--krot-purple-light) 100%);
  -webkit-background-clip: text;
  background-clip: text;
}

.hiw-metric-accuracy .hiw-metric-value {
  background: linear-gradient(135deg, #22c55e 0%, #4ade80 100%);
  -webkit-background-clip: text;
  background-clip: text;
}

.hiw-metric small {
  font-size: 1rem;
  color: var(--bs-secondary-color);
}

/* How It Works CTA Button */
#how-it-works .btn-primary {
  background: var(--krot-gradient-accent);
  border: none;
  padding: 1rem 2.5rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  box-shadow: 0 10px 30px rgba(6, 182, 212, 0.3);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  margin-top: 3rem;
}

#how-it-works .btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 20px 40px rgba(6, 182, 212, 0.4);
}

#how-it-works .btn-primary::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: 0.5s;
}

#how-it-works .btn-primary:hover::after {
  left: 100%;
}

#how-it-works .btn-primary i {
  transition: transform 0.3s ease;
}

#how-it-works .btn-primary:hover i {
  transform: translateX(5px);
}

/* Metric hover color accents */
.hiw-metric-time:hover {
  border-color: rgba(var(--krot-accent-rgb), 0.5);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3), 0 0 30px rgba(var(--krot-accent-rgb), 0.3);
}

.hiw-metric-depth:hover {
  border-color: rgba(var(--krot-purple-rgb), 0.5);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3), 0 0 30px rgba(var(--krot-purple-rgb), 0.3);
}

.hiw-metric-accuracy:hover {
  border-color: rgba(var(--bs-success-rgb), 0.5);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3), 0 0 30px rgba(var(--bs-success-rgb), 0.3);
}

/* ==========================================================================
   10. Active/Completed Step States
   ========================================================================== */

.hiw-step.active .hiw-step-card {
  border-color: rgba(var(--krot-accent-rgb), 0.5);
  box-shadow:
    0 20px 45px rgba(0, 0, 0, 0.3),
    0 0 35px rgba(var(--krot-accent-rgb), 0.2);
  transform: translateY(-8px) scale(1.02);
}

.hiw-step.active .hiw-step-icon {
  background: var(--krot-gradient-accent);
  border-color: transparent;
  box-shadow: 0 8px 25px rgba(var(--krot-accent-rgb), 0.4);
}

.hiw-step.active .hiw-step-icon i {
  color: var(--bs-body-bg);
}

.hiw-step.active .step-icon-ring {
  opacity: 1;
}

.hiw-step.active .hiw-step-content h4 {
  color: var(--krot-accent);
}

.hiw-step.completed .hiw-step-number {
  background: var(--bs-success);
}

.hiw-step.completed .hiw-step-icon {
  background: rgba(var(--bs-success-rgb), 0.2);
  border-color: rgba(var(--bs-success-rgb), 0.4);
}

.hiw-step.completed .hiw-step-icon i {
  color: var(--bs-success);
}

/* ==========================================================================
   11. Responsive Design
   ========================================================================== */

/* Large Desktop */
@media (max-width: 1399.98px) {
  .hiw-step-card {
    min-width: 180px;
    max-width: 200px;
    padding: 1.25rem;
  }

  .hiw-krot-card {
    min-width: 240px;
    max-width: 260px;
  }

  .hiw-connector {
    width: 50px;
  }
}

/* Tablet */
@media (max-width: 991.98px) {
  .hiw-flow-wrapper {
    flex-direction: column;
    align-items: center;
    gap: 0;
  }

  .hiw-step {
    flex-direction: column;
  }

  .hiw-step-card {
    min-width: 280px;
    max-width: 320px;
  }

  .hiw-krot-card {
    min-width: 300px;
    max-width: 340px;
  }

  /* Vertical connectors */
  .hiw-connector {
    width: 4px;
    height: 50px;
    margin: 0.5rem 0;
  }

  .connector-line {
    width: 3px;
    height: 100%;
  }

  .connector-line::after {
    width: 100%;
    height: 30%;
    animation: connector-flow-vertical 2.5s ease-in-out infinite;
  }

  @keyframes connector-flow-vertical {
    0% { top: -30%; opacity: 0; }
    20% { opacity: 1; }
    80% { opacity: 1; }
    100% { top: 100%; opacity: 0; }
  }

  .connector-particles .particle {
    left: 50%;
    transform: translateX(-50%);
    top: auto;
    animation: particle-flow-vertical 3s ease-in-out infinite;
  }

  @keyframes particle-flow-vertical {
    0% { top: -10px; opacity: 0; }
    10% { opacity: 1; }
    90% { opacity: 1; }
    100% { top: calc(100% + 10px); opacity: 0; }
  }

  .connector-arrow {
    right: auto;
    bottom: -8px;
    top: auto;
    transform: translateX(-50%) rotate(90deg);
    left: 50%;
  }

  /* Glow reduced */
  #how-it-works .hiw-glow-primary,
  #how-it-works .hiw-glow-secondary,
  #how-it-works .hiw-glow-center {
    opacity: 0.6;
  }

  .hiw-floating-metrics {
    gap: 1rem;
  }
}

/* Mobile */
@media (max-width: 767.98px) {
  .hiw-step-card {
    min-width: 100%;
    max-width: 100%;
    padding: 1.25rem;
  }

  .hiw-krot-card {
    min-width: 100%;
    max-width: 100%;
    padding: 1.5rem;
  }

  .hiw-step-icon {
    width: 56px;
    height: 56px;
  }

  .hiw-step-icon i {
    font-size: 1.5rem;
  }

  .hiw-krot-core {
    width: 90px;
    height: 90px;
  }

  .krot-icon-wrapper {
    width: 60px;
    height: 60px;
  }

  .krot-icon-wrapper i {
    font-size: 1.75rem;
  }

  .krot-pulse-ring {
    width: 60px;
    height: 60px;
  }

  .krot-orbit-1 { inset: -6px; }
  .krot-orbit-2 { inset: -14px; }
  .krot-orbit-3 { inset: -22px; }

  .hiw-krot-title {
    font-size: 1.25rem !important;
  }

  .krot-process-item {
    padding: 0.375rem 0.625rem;
    font-size: 1rem;
  }

  .hiw-connector {
    height: 40px;
  }

  .hiw-progress {
    margin-top: 2rem;
  }

  .hiw-progress-dot {
    width: 28px;
    height: 28px;
  }

  .hiw-progress-dot-krot {
    width: 36px;
    height: 36px;
  }

  .hiw-floating-metrics {
    gap: 0.75rem;
    margin-top: 2rem;
  }

  .hiw-metric {
    padding: 0.875rem 1rem;
    min-width: 110px;
  }

  .hiw-metric i {
    font-size: 1.25rem;
  }

  .hiw-metric-value {
    font-size: 1.125rem;
  }

  #how-it-works .hiw-glow-primary,
  #how-it-works .hiw-glow-secondary {
    opacity: 0.4;
  }

  #how-it-works .hiw-glow-center {
    display: none;
  }
}

/* Small mobile */
@media (max-width: 480px) {
  .hiw-step-tags {
    gap: 0.25rem;
  }

  .step-tag {
    padding: 0.1875rem 0.5rem;
    font-size: 1rem;
  }

  .hiw-floating-metrics {
    flex-direction: row;
    justify-content: space-around;
  }

  .hiw-metric {
    flex: 1;
    min-width: 90px;
    padding: 0.75rem 0.5rem;
  }

  .hiw-metric small {
    font-size: 1rem;
  }

  .hiw-progress-steps {
    padding: 0;
  }

  .hiw-progress-dot {
    width: 26px;
    height: 26px;
  }

  .hiw-progress-dot-krot {
    width: 32px;
    height: 32px;
  }

  #how-it-works .hiw-glow-secondary {
    display: none;
  }
}

/* ==========================================================================
   12. Accessibility (Reduced Motion)
   ========================================================================== */

@media (prefers-reduced-motion: reduce) {
  #how-it-works .hiw-glow-primary,
  #how-it-works .hiw-glow-secondary,
  #how-it-works .hiw-glow-center,
  #how-it-works .section-header h2::after,
  .step-icon-ring,
  .krot-orbit,
  .krot-pulse-ring,
  .connector-line::after,
  .connector-particles .particle,
  .connector-arrow,
  .hiw-metric {
    animation: none;
  }

  .hiw-step {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .hiw-step-card:hover,
  .hiw-krot-card:hover {
    transform: translateY(-5px);
  }

  .hiw-step-card:hover .hiw-step-number {
    transform: scale(1.05);
  }

  .hiw-step-card:hover .hiw-step-icon,
  .hiw-krot-card:hover .krot-icon-wrapper {
    transform: scale(1.05);
  }

  .hiw-metric:hover {
    transform: translateY(-5px) scale(1.02);
  }

  .hiw-progress-fill {
    transition: width 0.3s ease;
  }
}

/* ==========================================================================
   Solution Section - Bento Grid Redesign
   ========================================================================== */

.solution-bento {
  position: relative;
  z-index: 2;
  padding: 1rem 0;
}

.bento-card {
  background: var(--krot-glass-bg);
  border: 1px solid var(--krot-glass-border);
  border-radius: var(--bs-border-radius-xl);
  padding: 1.5rem;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  overflow: hidden;
  position: relative;
}

.bento-card:hover {
  transform: translateY(-5px);
  border-color: rgba(var(--krot-accent-rgb), 0.4);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3), 0 0 30px rgba(var(--krot-accent-rgb), 0.15);
}

/* Main Feature Card */
.bento-main {
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: linear-gradient(165deg, var(--krot-glass-bg) 0%, rgba(var(--krot-accent-rgb), 0.05) 100%);
}

.bento-icon-wrapper {
  width: 64px;
  height: 64px;
  background: var(--krot-gradient-accent);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  box-shadow: 0 10px 20px rgba(var(--krot-accent-rgb), 0.3);
}

.bento-icon-wrapper i {
  font-size: 32px;
  color: white;
  position: relative;
  z-index: 2;
}

.bento-icon-pulse {
  position: absolute;
  inset: -4px;
  border-radius: inherit;
  border: 2px solid rgba(var(--krot-accent-rgb), 0.5);
  animation: bento-pulse 3s infinite;
}

@keyframes bento-pulse {
  0% { transform: scale(1); opacity: 0.8; }
  100% { transform: scale(1.2); opacity: 0; }
}

.bento-content h3 {
  font-size: 1.75rem;
  font-weight: 700;
  margin-bottom: 1rem;
  background: linear-gradient(to right, #fff, #cbd5e1);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

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

.bento-list li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
  font-size: 0.95rem;
  color: var(--bs-gray-300);
}

.bento-list li i {
  font-size: 1.1rem;
}

/* Detailed Bento List (with descriptions) */
.bento-list-detailed li {
  align-items: flex-start;
  margin-bottom: 1rem;
}

.bento-list-detailed li > div {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.bento-list-detailed li strong {
  color: var(--bs-body-color);
  font-weight: 600;
  font-size: 0.95rem;
}

.bento-list-detailed li span {
  font-size: 0.85rem;
  line-height: 1.5;
  opacity: 0.85;
}

.bento-list-detailed li i {
  margin-top: 0.15rem;
}

/* Secondary Cards */
.bento-secondary {
  padding: 2rem;
}

.bento-icon-small {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  flex-shrink: 0;
}

.bg-purple-subtle {
  background: rgba(var(--krot-purple-rgb), 0.15);
  color: var(--krot-purple);
}

.bg-blue-subtle {
  background: rgba(var(--krot-accent-rgb), 0.15);
  color: var(--krot-accent);
}

.bento-secondary h4 {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--bs-white);
}

/* Stat Cards */
.bento-stat {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
}

.stat-value {
  font-size: 2.5rem;
  font-weight: 800;
  line-height: 1;
  margin-bottom: 0.25rem;
}

.stat-label {
  font-size: 1rem;
  color: var(--bs-gray-400);
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* Tertiary Cards (Bottom Row) */
.bento-tertiary {
  padding: 1.25rem 1.5rem;
  display: flex;
  align-items: center;
}

.bento-tertiary h5 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--bs-white);
}

.bento-tertiary .bento-icon-small {
  width: 40px;
  height: 40px;
  font-size: 20px;
}

/* Subtle Background Colors */
.bg-success-subtle {
  background: rgba(25, 135, 84, 0.15);
}

.bg-warning-subtle {
  background: rgba(255, 193, 7, 0.15);
}

.bg-info-subtle {
  background: rgba(13, 202, 240, 0.15);
}

/* Visual Element in Main Card */
.ai-wave-visual {
  height: 60px;
  width: 100%;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 320'%3E%3Cpath fill='%2306b6d4' fill-opacity='0.2' d='M0,192L48,197.3C96,203,192,213,288,229.3C384,245,480,267,576,250.7C672,235,768,181,864,181.3C960,181,1056,235,1152,234.7C1248,235,1344,181,1392,154.7L1440,128L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z'%3E%3C/path%3E%3C/svg%3E");
  background-size: cover;
  background-position: bottom;
  opacity: 0.5;
  margin-top: auto;
  border-radius: 0 0 var(--bs-border-radius-xl) var(--bs-border-radius-xl);
}

/* ==========================================================================
   FAQ Section
   ========================================================================== */

#faq {
  position: relative;
  overflow: hidden;
}

#faq::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at center, rgba(139, 92, 246, 0.05) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

/* Floating question marks decoration */
#faq .faq-decoration {
  position: absolute;
  font-family: var(--krot-font-heading);
  font-weight: 800;
  color: rgba(255, 255, 255, 0.03);
  z-index: 0;
  pointer-events: none;
  user-select: none;
}

#faq .faq-decoration-1 {
  top: 10%;
  left: 5%;
  font-size: 15rem;
  transform: rotate(-15deg);
}

#faq .faq-decoration-2 {
  bottom: 5%;
  right: 5%;
  font-size: 20rem;
  transform: rotate(15deg);
}

/* ==========================================================================
   Contact Section - Ultra Premium Redesign v2
   ========================================================================== */

#contact {
  position: relative;
  overflow: clip;
}

/* Background Effects */
#contact .contact-bg-pattern {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 50% at 20% 40%, rgba(var(--krot-accent-rgb), 0.08) 0%, transparent 50%),
    radial-gradient(ellipse 60% 40% at 80% 60%, rgba(var(--krot-purple-rgb), 0.06) 0%, transparent 50%);
  pointer-events: none;
}

#contact .contact-glow-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
  animation: contact-orb-drift 25s ease-in-out infinite;
}

#contact .contact-glow-orb-1 {
  width: 500px;
  height: 500px;
  background: var(--krot-accent);
  top: -150px;
  right: -100px;
  opacity: 0.15;
}

#contact .contact-glow-orb-2 {
  width: 400px;
  height: 400px;
  background: var(--krot-purple);
  bottom: -100px;
  left: -100px;
  opacity: 0.4;
  animation-delay: -10s;
}

#contact .contact-glow-orb-3 {
  width: 300px;
  height: 300px;
  background: linear-gradient(135deg, var(--krot-accent), var(--krot-purple));
  top: 40%;
  left: 30%;
  opacity: 0.2;
  animation-delay: -18s;
}

@keyframes contact-orb-drift {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(40px, -30px) scale(1.1); }
  66% { transform: translate(-30px, 40px) scale(0.95); }
}

/* Section Badge */
#contact .section-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.625rem 1.25rem;
  background: linear-gradient(135deg, rgba(var(--krot-accent-rgb), 0.15) 0%, rgba(var(--krot-purple-rgb), 0.1) 100%);
  border: 1px solid rgba(var(--krot-accent-rgb), 0.3);
  border-radius: 50px;
  font-size: 1rem;
  font-weight: 600;
  color: var(--krot-accent);
}

/* ========== Unified Contact Card (Left Column) ========== */
.contact-info-card-unified {
  position: relative;
  background: linear-gradient(165deg, rgba(30, 41, 59, 0.9) 0%, rgba(15, 23, 42, 0.95) 100%);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 1.5rem;
  padding: 2rem;
  height: 100%;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  overflow: hidden;
}

/* Decorative glow */
.contact-card-glow {
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: conic-gradient(from 180deg at 50% 50%,
    transparent 0deg,
    rgba(var(--krot-accent-rgb), 0.03) 60deg,
    transparent 120deg,
    rgba(var(--krot-purple-rgb), 0.03) 180deg,
    transparent 240deg,
    rgba(var(--krot-accent-rgb), 0.03) 300deg,
    transparent 360deg);
  animation: contact-card-rotate 30s linear infinite;
  pointer-events: none;
}

/* Hide decorative glow on mobile to prevent horizontal scroll */
@media (max-width: 991.98px) {
  .contact-card-glow {
    display: none;
  }
}

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

/* Subtle grid pattern */
.contact-card-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
  background-size: 30px 30px;
  pointer-events: none;
  opacity: 0.5;
}

/* Header */
.contact-card-header {
  position: relative;
  z-index: 1;
}

.contact-live-indicator {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.375rem 0.875rem;
  background: rgba(var(--krot-emerald-rgb), 0.15);
  border: 1px solid rgba(var(--krot-emerald-rgb), 0.3);
  border-radius: 50px;
  margin-bottom: 1rem;
}

.contact-live-dot {
  width: 8px;
  height: 8px;
  background: var(--krot-emerald);
  border-radius: 50%;
  animation: live-pulse 2s ease-in-out infinite;
}

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

.contact-live-text {
  font-size: 1rem;
  font-weight: 600;
  color: var(--krot-emerald);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.contact-header-content {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.contact-avatar-wrapper {
  position: relative;
  flex-shrink: 0;
}

.contact-avatar-ring {
  position: absolute;
  inset: -4px;
  border-radius: 1.25rem;
  background: var(--krot-gradient-accent);
  opacity: 0.4;
  animation: avatar-ring-pulse 3s ease-in-out infinite;
}

@keyframes avatar-ring-pulse {
  0%, 100% { transform: scale(1); opacity: 0.4; }
  50% { transform: scale(1.08); opacity: 0.2; }
}

.contact-avatar-main {
  position: relative;
  width: 60px;
  height: 60px;
  border-radius: 1rem;
  background: var(--krot-gradient-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: var(--bs-body-bg);
}

.contact-card-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--bs-body-color);
  margin: 0;
}

.contact-card-subtitle {
  font-size: 1rem;
  color: var(--bs-secondary-color);
  margin: 0.25rem 0 0;
}

/* Stats Grid */
.contact-stats-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
}

.contact-stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  padding: 1rem 0.5rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 1rem;
  text-align: center;
  transition: all 0.3s ease;
}

.contact-stat-item:hover {
  background: rgba(var(--krot-accent-rgb), 0.08);
  border-color: rgba(var(--krot-accent-rgb), 0.2);
  transform: translateY(-2px);
}

.contact-stat-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: rgba(var(--krot-accent-rgb), 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  color: var(--krot-accent);
}

.contact-stat-data {
  display: flex;
  flex-direction: column;
}

.contact-stat-number {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--bs-body-color);
  font-family: var(--krot-font-heading);
  line-height: 1;
}

.contact-stat-text {
  font-size: 1rem;
  color: var(--bs-secondary-color);
  margin-top: 0.25rem;
}

/* Contact Methods */
.contact-methods {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.contact-method {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.25rem;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 1rem;
  text-decoration: none;
  color: inherit;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

a.contact-method {
  cursor: pointer;
}

a.contact-method:hover {
  background: rgba(var(--krot-accent-rgb), 0.1);
  border-color: rgba(var(--krot-accent-rgb), 0.3);
  transform: translateX(6px);
}

.contact-method-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.05);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.125rem;
  color: var(--krot-accent);
  flex-shrink: 0;
  transition: all 0.3s ease;
}

a.contact-method:hover .contact-method-icon {
  background: var(--krot-gradient-accent);
  color: var(--bs-body-bg);
  transform: scale(1.05);
}

.contact-method-info {
  flex: 1;
  min-width: 0;
}

.contact-method-label {
  display: block;
  font-size: 1rem;
  color: var(--bs-secondary-color);
  margin-bottom: 0.125rem;
}

.contact-method-value {
  display: block;
  font-size: 0.9375rem;
  color: var(--bs-body-color);
  font-weight: 500;
}

.contact-method-action {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(var(--krot-accent-rgb), 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--krot-accent);
  opacity: 0;
  transform: translateX(-10px);
  transition: all 0.3s ease;
}

a.contact-method:hover .contact-method-action {
  opacity: 1;
  transform: translateX(0);
}

/* Skolkovo Badge */
.contact-badge-skolkovo {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.25rem;
  background: linear-gradient(135deg, rgba(var(--krot-accent-rgb), 0.08) 0%, rgba(var(--krot-purple-rgb), 0.05) 100%);
  border: 1px solid rgba(var(--krot-accent-rgb), 0.2);
  border-radius: 1rem;
}

.skolkovo-badge-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--krot-gradient-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  color: var(--bs-body-bg);
  flex-shrink: 0;
}

.skolkovo-badge-content {
  flex: 1;
}

.skolkovo-badge-title {
  display: block;
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--bs-body-color);
}

.skolkovo-badge-text {
  display: block;
  font-size: 1rem;
  color: var(--bs-secondary-color);
}

.skolkovo-badge-verified {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--krot-emerald);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1rem;
  flex-shrink: 0;
}

/* Social Footer */
.contact-social-footer {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  margin-top: auto;
}

.contact-social-text {
  font-size: 1rem;
  color: var(--bs-secondary-color);
}

.contact-social-buttons {
  display: flex;
  gap: 0.5rem;
}

.contact-social-btn {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--bs-body-color);
  font-size: 1.125rem;
  text-decoration: none;
  transition: all 0.3s ease;
}

.contact-social-btn:hover {
  background: var(--krot-gradient-accent);
  border-color: transparent;
  color: var(--bs-body-bg);
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 8px 25px rgba(var(--krot-accent-rgb), 0.4);
}

/* ========== Form Card ========== */
.contact-form-card {
  position: relative;
  background: linear-gradient(165deg, rgba(30, 41, 59, 0.9) 0%, rgba(15, 23, 42, 0.95) 100%);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 1.5rem;
  padding: 2rem;
  overflow: hidden;
}

.contact-form-glow {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--krot-gradient-accent);
}

/* Form Sections */
.contact-form .form-section {
  margin-bottom: 1.75rem;
}

.form-section-label {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--bs-body-color);
  margin-bottom: 1rem;
}

.form-section-label-icon {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: rgba(var(--krot-accent-rgb), 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  color: var(--krot-accent);
}

/* ========== Interest Grid (Horizontal Buttons) ========== */
.interest-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
}

.interest-item {
  position: relative;
}

.interest-input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.interest-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 1.25rem 0.75rem;
  background: rgba(15, 23, 42, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 1rem;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  text-align: center;
  color: var(--bs-secondary-color);
}

.interest-btn:hover {
  background: rgba(15, 23, 42, 0.8);
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
  color: var(--bs-body-color);
}

.interest-btn-icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.05);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.375rem;
  color: var(--bs-secondary-color);
  transition: all 0.3s ease;
}

.interest-btn:hover .interest-btn-icon {
  background: rgba(255, 255, 255, 0.1);
  color: var(--bs-body-color);
}
  transition: all 0.3s ease;
}

.interest-btn-text {
  font-size: 1rem;
  font-weight: 600;
  color: var(--bs-body-color);
  transition: color var(--krot-transition-base);
}

/* Interest Checked State */
.interest-input:checked + .interest-btn {
  background: rgba(var(--krot-accent-rgb), 0.12);
  border-color: var(--krot-accent);
  box-shadow:
    0 0 0 1px var(--krot-accent),
    0 0 30px rgba(var(--krot-accent-rgb), 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.interest-input:checked + .interest-btn .interest-btn-icon {
  background: var(--krot-gradient-accent);
  color: var(--bs-body-bg);
  box-shadow: 0 8px 20px rgba(var(--krot-accent-rgb), 0.4);
}

.interest-input:checked + .interest-btn .interest-btn-text {
  color: var(--krot-accent);
}

/* ========== Enhanced Form Fields ========== */
.form-fields-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

.form-field-wrapper {
  position: relative;
}

.form-field-full {
  grid-column: 1 / -1;
}

.form-field-enhanced {
  position: relative;
  display: flex;
  align-items: center;
  background: rgba(15, 23, 42, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 0.875rem;
  transition: all 0.3s ease;
  overflow: hidden;
}

.form-field-enhanced:hover {
  border-color: rgba(255, 255, 255, 0.15);
  background: rgba(15, 23, 42, 0.6);
}

.form-field-enhanced:focus-within {
  border-color: var(--krot-accent);
  background: rgba(15, 23, 42, 0.7);
  box-shadow: 0 0 0 3px rgba(var(--krot-accent-rgb), 0.1);
}

.form-field-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  color: var(--bs-secondary-color);
  flex-shrink: 0;
  transition: color var(--krot-transition-base);
  z-index: 2; /* Ensure icon is above background */
}

.form-field-enhanced:focus-within .form-field-icon {
  color: var(--krot-accent);
}

.form-input {
  flex: 1;
  padding: 0.875rem 1rem 0.875rem 0;
  background: transparent;
  border: none;
  color: var(--bs-body-color);
  font-size: 0.9375rem;
  outline: none;
}

.form-input::placeholder {
  color: var(--bs-secondary-color);
  opacity: 0.7;
}

/* Focus line animation */
.form-field-focus-line {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--krot-gradient-accent);
  transition: width 0.3s ease;
}

.form-field-enhanced:focus-within .form-field-focus-line {
  width: 100%;
}

/* Textarea */
.form-field-textarea {
  align-items: flex-start;
}

.form-field-textarea .form-field-icon {
  padding-top: 0.75rem;
}

.form-textarea {
  min-height: 100px;
  resize: none;
  padding-top: 0.75rem;
  padding-bottom: 0.75rem;
}

/* Error State */
.form-error-text {
  display: none;
  font-size: 1rem;
  color: var(--bs-danger);
  margin-top: 0.5rem;
  padding-left: 0.5rem;
}

.form-field-wrapper.has-error .form-field-enhanced {
  border-color: var(--bs-danger);
}

.form-field-wrapper.has-error .form-error-text {
  display: block;
}

.form-field-wrapper.has-error .form-field-icon {
  color: var(--bs-danger);
}

/* Valid State */
.form-field-wrapper.is-valid .form-field-enhanced {
  border-color: rgba(var(--krot-emerald-rgb), 0.5);
}

.form-field-wrapper.is-valid .form-field-icon {
  color: var(--krot-emerald);
}

/* ========== Premium Submit Button ========== */
.form-submit-section {
  margin-top: 1.75rem;
}

.submit-btn-premium {
  position: relative;
  width: 100%;
  padding: 1rem 2rem;
  background: transparent;
  border: none;
  border-radius: 0.875rem;
  cursor: pointer;
  overflow: hidden;
}

.submit-btn-bg {
  position: absolute;
  inset: 0;
  background: var(--krot-gradient-accent);
  transition: all 0.4s ease;
}

.submit-btn-bg::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.2) 0%, transparent 50%, rgba(255, 255, 255, 0.1) 100%);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.submit-btn-premium:hover .submit-btn-bg {
  transform: scale(1.02);
  box-shadow: 0 12px 35px rgba(var(--krot-accent-rgb), 0.5);
}

.submit-btn-premium:hover .submit-btn-bg::before {
  opacity: 1;
}

.submit-btn-premium:active .submit-btn-bg {
  transform: scale(0.98);
}

.submit-btn-content {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--bs-body-bg);
  font-size: 1rem;
  font-weight: 600;
  font-family: var(--krot-font-heading);
}

.submit-btn-text {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.submit-btn-text i {
  transition: transform 0.3s ease;
}

.submit-btn-premium:hover .submit-btn-text i {
  transform: translateX(4px);
}

.submit-btn-loading,
.submit-btn-success {
  display: none;
  align-items: center;
  gap: 0.5rem;
}

/* Loading Spinner */
.submit-spinner {
  width: 18px;
  height: 18px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-top-color: white;
  border-radius: 50%;
  animation: submit-spin 0.8s linear infinite;
}

@keyframes submit-spin {
  to { transform: rotate(360deg); }
}

/* Button States */
.submit-btn-premium.is-loading .submit-btn-text {
  display: none;
}

.submit-btn-premium.is-loading .submit-btn-loading {
  display: flex;
}

.submit-btn-premium.is-success .submit-btn-text {
  display: none;
}

.submit-btn-premium.is-success .submit-btn-loading {
  display: none;
}

.submit-btn-premium.is-success .submit-btn-success {
  display: flex;
}

.submit-btn-premium.is-success .submit-btn-bg {
  background: linear-gradient(135deg, var(--krot-emerald) 0%, var(--krot-emerald-dark) 100%);
}

/* Consent Text */
.form-consent {
  display: block;
  margin-top: 1rem;
  margin-bottom: 0;
  font-size: 0.875rem;
  color: var(--bs-secondary-color);
  text-align: center;
  line-height: 1.5;
}

.form-consent i {
  color: var(--krot-accent);
  font-size: 1rem;
  margin-right: 0.5rem;
  vertical-align: text-bottom;
}

.form-consent a {
  color: var(--krot-accent);
  text-decoration: none;
  border-bottom: 1px dashed rgba(var(--krot-accent-rgb), 0.5);
  transition: all 0.2s ease;
}

.form-consent a:hover {
  border-bottom-style: solid;
  border-bottom-color: var(--krot-accent);
}

/* hCaptcha Styling */
.h-captcha {
  display: flex;
  justify-content: center;
}

.h-captcha iframe {
  border-radius: var(--radius-md);
}

/* Success State */
.contact-success-state {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 3rem 2rem;
}

.contact-form-card.show-success .contact-form {
  display: none;
}

.contact-form-card.show-success .contact-success-state {
  display: flex;
}

.contact-success-icon {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: var(--krot-gradient-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  color: var(--bs-body-bg);
  margin-bottom: 1.5rem;
  animation: success-pop 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes success-pop {
  0% { transform: scale(0); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}

.contact-success-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--bs-body-color);
  margin-bottom: 0.75rem;
}

.contact-success-text {
  color: var(--bs-secondary-color);
  max-width: 300px;
  margin: 0;
}

/* ========== Contact Responsive ========== */
@media (max-width: 991.98px) {
  .contact-form-card {
    padding: 1.5rem;
  }

  .contact-info-card-unified {
    padding: 1.5rem;
  }

  .contact-stats-grid {
    gap: 0.5rem;
  }

  .contact-stat-item {
    padding: 0.75rem 0.25rem;
  }

  .contact-stat-number {
    font-size: 1.125rem;
  }
}

@media (max-width: 767.98px) {
  .contact-form-card {
    padding: 1.25rem;
  }

  .contact-info-card-unified {
    padding: 1.25rem;
    gap: 1.25rem;
  }

  .contact-avatar-main {
    width: 50px;
    height: 50px;
    font-size: 1.25rem;
  }

  .contact-card-title {
    font-size: 1.125rem;
  }

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

  .contact-stat-icon {
    width: 32px;
    height: 32px;
    font-size: 1rem;
  }

  .contact-stat-number {
    font-size: 1rem;
  }

  .contact-stat-text {
    font-size: 1rem;
  }

  /* Interest Grid Mobile */
  .interest-grid {
    grid-template-columns: 1fr;
    gap: 0.5rem;
  }

  .interest-btn {
    flex-direction: row;
    justify-content: flex-start;
    gap: 0.875rem;
    padding: 0.875rem 1rem;
  }

  .interest-btn-icon {
    width: 40px;
    height: 40px;
    font-size: 1.125rem;
  }

  /* Form Fields Mobile */
  .form-fields-grid {
    grid-template-columns: 1fr;
  }

  .form-field-icon {
    width: 42px;
    height: 42px;
  }

  .form-input {
    font-size: 16px; /* Prevents zoom on iOS */
  }

  /* Submit Button Mobile */
  .submit-btn-premium {
    padding: 0.875rem 1.5rem;
  }

  .form-consent {
    flex-direction: column;
    gap: 0.25rem;
  }
}

/* ========================================================================
   TECHNOLOGY & ARCHITECTURE SECTION
   ======================================================================== */

#technology {
  position: relative;
  overflow: clip;
}

/* Background Glow Effects */
#technology .tech-glow-primary {
  position: absolute;
  top: -10%;
  right: -5%;
  width: 45%;
  height: 70%;
  background: radial-gradient(ellipse at center,
    rgba(var(--krot-accent-rgb), 0.12) 0%,
    transparent 60%);
  pointer-events: none;
  z-index: 0;
  animation: tech-glow-pulse 10s ease-in-out infinite;
}

#technology .tech-glow-secondary {
  position: absolute;
  bottom: -15%;
  left: -8%;
  width: 40%;
  height: 60%;
  background: radial-gradient(ellipse at center,
    rgba(var(--krot-purple-rgb), 0.1) 0%,
    transparent 55%);
  pointer-events: none;
  z-index: 0;
  animation: tech-glow-pulse 12s ease-in-out infinite reverse;
}

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

/* Architecture Visualization Container */
.tech-architecture {
  position: relative;
  padding: 3rem 2rem;
  border-radius: var(--bs-border-radius-xl);
  background: var(--krot-glass-bg);
  border: 1px solid var(--krot-glass-border);
  overflow: hidden;
}

.tech-architecture::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--krot-grid-pattern);
  background-size: 30px 30px;
  opacity: 0.3;
  pointer-events: none;
}

/* Tech Layers - Flow Layout */
.tech-layers {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  position: relative;
  z-index: 1;
}

/* Individual Layer */
.tech-layer {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  padding: 1.5rem 2rem;
  background: rgba(var(--krot-accent-rgb), 0.05);
  border: 1px solid rgba(var(--krot-accent-rgb), 0.2);
  border-radius: var(--bs-border-radius-lg);
  min-width: 140px;
  transition: all var(--krot-transition-base);
  position: relative;
}

.tech-layer:hover {
  transform: translateY(-5px);
  border-color: rgba(var(--krot-accent-rgb), 0.4);
  box-shadow: 0 10px 30px rgba(var(--krot-accent-rgb), 0.15);
}

/* Core Layer - Emphasized */
.tech-layer-core {
  background: linear-gradient(135deg,
    rgba(var(--krot-accent-rgb), 0.1) 0%,
    rgba(var(--krot-purple-rgb), 0.1) 100%);
  border: 2px solid rgba(var(--krot-accent-rgb), 0.3);
  padding: 2rem 2.5rem;
  min-width: 180px;
}

.tech-layer-core:hover {
  border-color: rgba(var(--krot-accent-rgb), 0.5);
  box-shadow: 0 15px 40px rgba(var(--krot-accent-rgb), 0.2),
              0 0 30px rgba(var(--krot-purple-rgb), 0.1);
}

/* Layer Icon */
.layer-icon {
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--krot-gradient-accent);
  border-radius: 50%;
  font-size: 1.5rem;
  color: white;
  transition: all var(--krot-transition-base);
}

.tech-layer-core .layer-icon {
  width: 72px;
  height: 72px;
  font-size: 2rem;
  box-shadow: var(--krot-shadow-glow-accent);
}

.tech-layer:hover .layer-icon {
  transform: scale(1.1);
}

/* Layer Labels */
.layer-label {
  font-weight: 600;
  font-size: 1rem;
  color: var(--bs-body-color);
  text-align: center;
}

.layer-sublabel {
  font-size: 0.8125rem;
  color: var(--bs-body-secondary);
  text-align: center;
}

.layer-badge {
  font-size: 0.75rem;
  padding: 0.25rem 0.75rem;
  background: rgba(var(--krot-purple-rgb), 0.2);
  border: 1px solid rgba(var(--krot-purple-rgb), 0.3);
  border-radius: var(--bs-border-radius-pill);
  color: var(--krot-purple-light);
  margin-top: 0.25rem;
}

/* Connectors between layers */
.tech-connector {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  width: 60px;
  height: 20px;
  position: relative;
}

.tech-connector .connector-line {
  flex: 1;
  height: 3px;
  background: linear-gradient(90deg,
    rgba(var(--krot-accent-rgb), 0.2),
    rgba(var(--krot-accent-rgb), 0.5),
    rgba(var(--krot-accent-rgb), 0.2));
  border-radius: 2px;
  position: relative;
  overflow: hidden;
}

.tech-connector .connector-line::after {
  content: '';
  position: absolute;
  top: 0;
  left: -30%;
  width: 30%;
  height: 100%;
  background: linear-gradient(90deg,
    transparent,
    var(--krot-accent),
    transparent);
  animation: tech-connector-flow 2s ease-in-out infinite;
}

@keyframes tech-connector-flow {
  0% {
    left: -30%;
  }
  100% {
    left: 130%;
  }
}

.tech-connector .connector-arrow {
  position: absolute;
  right: -6px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--krot-accent);
  font-size: 0.875rem;
  line-height: 1;
  opacity: 0.7;
  animation: tech-arrow-pulse 2s ease-in-out infinite;
}

.tech-connector .connector-arrow i {
  display: block;
  line-height: 1;
}

@keyframes tech-arrow-pulse {
  0%, 100% {
    opacity: 0.5;
    transform: translateY(-50%) translateX(0);
  }
  50% {
    opacity: 1;
    transform: translateY(-50%) translateX(3px);
  }
}

/* On-Premise Badge */
.tech-onprem-badge {
  position: absolute;
  bottom: 1rem;
  right: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  background: rgba(34, 197, 94, 0.1);
  border: 1px solid rgba(34, 197, 94, 0.3);
  border-radius: var(--bs-border-radius-pill);
  font-size: 0.8125rem;
  font-weight: 500;
  color: #22c55e;
  z-index: 2;
}

.tech-onprem-badge i {
  font-size: 1rem;
}

/* ========================================================================
   TECHNOLOGY SECTION - RESPONSIVE
   ======================================================================== */

@media (max-width: 991.98px) {
  .tech-layers {
    flex-direction: column;
    gap: 0.75rem;
  }

  .tech-connector {
    width: 3px;
    height: 40px;
    flex-direction: column;
  }

  .tech-connector .connector-line {
    width: 3px;
    height: 100%;
    flex: 1;
    background: linear-gradient(180deg,
      rgba(var(--krot-accent-rgb), 0.2),
      rgba(var(--krot-accent-rgb), 0.5),
      rgba(var(--krot-accent-rgb), 0.2));
  }

  .tech-connector .connector-line::after {
    width: 100%;
    height: 30%;
    left: 0;
    top: -30%;
    background: linear-gradient(180deg,
      transparent,
      var(--krot-accent),
      transparent);
    animation: tech-connector-flow-vertical 2s ease-in-out infinite;
  }

  @keyframes tech-connector-flow-vertical {
    0% {
      top: -30%;
    }
    100% {
      top: 130%;
    }
  }

  .tech-connector .connector-arrow {
    top: auto;
    right: auto;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%) rotate(90deg);
  }

  @keyframes tech-arrow-pulse {
    0%, 100% {
      opacity: 0.5;
      transform: translateX(-50%) rotate(90deg) translateY(0);
    }
    50% {
      opacity: 1;
      transform: translateX(-50%) rotate(90deg) translateY(3px);
    }
  }

  .tech-onprem-badge {
    position: relative;
    bottom: auto;
    right: auto;
    margin-top: 1.5rem;
    justify-content: center;
  }

  #technology .tech-glow-primary,
  #technology .tech-glow-secondary {
    opacity: 0.6;
  }
}

@media (max-width: 767.98px) {
  .tech-architecture {
    padding: 2rem 1rem;
  }

  .tech-layer {
    min-width: 120px;
    padding: 1rem 1.5rem;
  }

  .tech-layer-core {
    padding: 1.25rem 1.75rem;
    min-width: 150px;
  }

  .layer-icon {
    width: 48px;
    height: 48px;
    font-size: 1.25rem;
  }

  .tech-layer-core .layer-icon {
    width: 60px;
    height: 60px;
    font-size: 1.5rem;
  }

  .layer-label {
    font-size: 0.9375rem;
  }

  .tech-connector {
    height: 30px;
  }

  #technology .tech-glow-primary,
  #technology .tech-glow-secondary {
    opacity: 0.4;
  }
}

@media (max-width: 480px) {
  .tech-architecture {
    padding: 1.5rem 0.75rem;
  }

  .tech-layer {
    width: 100%;
    max-width: 200px;
  }

  .tech-layer-core {
    max-width: 220px;
  }

  .tech-onprem-badge {
    font-size: 0.75rem;
    padding: 0.375rem 0.75rem;
  }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  #technology .tech-glow-primary,
  #technology .tech-glow-secondary {
    animation: none;
  }

  .tech-connector .connector-line::after {
    animation: none;
  }

  .tech-connector .connector-arrow {
    animation: none;
  }

  .tech-layer:hover {
    transform: translateY(-3px);
  }

  .tech-layer:hover .layer-icon {
    transform: scale(1.05);
  }
}

/* ==========================================================================
   Security & Privacy Section
   ========================================================================== */

#security {
  position: relative;
  overflow: clip;
}

/* Glow Effects */
#security .security-glow-primary {
  position: absolute;
  top: -15%;
  right: -10%;
  width: 55%;
  height: 90%;
  background: radial-gradient(
    ellipse at center,
    rgba(34, 197, 94, 0.12) 0%,
    transparent 55%
  );
  animation: security-glow-pulse 10s ease-in-out infinite;
  pointer-events: none;
  z-index: 0;
}

#security .security-glow-secondary {
  position: absolute;
  bottom: -20%;
  left: -12%;
  width: 50%;
  height: 80%;
  background: radial-gradient(
    ellipse at center,
    rgba(var(--krot-accent-rgb), 0.1) 0%,
    transparent 55%
  );
  animation: security-glow-pulse 12s ease-in-out infinite reverse;
  pointer-events: none;
  z-index: 0;
}

@keyframes security-glow-pulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.08); opacity: 0.85; }
}

/* Card Hover Effects */
#security .card.card-glass {
  transition: all var(--krot-transition-base);
}

#security .card.card-glass:hover {
  transform: translateY(-8px);
  --bs-card-border-color: rgba(34, 197, 94, 0.3);
  box-shadow:
    0 20px 40px rgba(0, 0, 0, 0.3),
    0 0 30px rgba(34, 197, 94, 0.15);
}

#security .card.card-glass:hover .card-icon {
  transform: scale(1.1);
  box-shadow: 0 0 25px rgba(34, 197, 94, 0.4);
}

/* Security Shield Visual */
.security-shield-visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 3rem;
}

/* Security Shield Visual - Hexagon Style */
.security-shield-icon {
  position: relative;
  width: 120px;
  height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  color: var(--krot-emerald); /* Emerald 500 */
  background: rgba(var(--krot-emerald-rgb), 0.1);
  clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
  transition: all 0.4s ease;
}

.security-shield-icon::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(var(--krot-emerald-rgb), 0.2), transparent);
  z-index: -1;
}

/* Outer pulsing ring */
.security-shield-icon::after {
  content: '';
  position: absolute;
  inset: -10px;
  background: transparent;
  border: 2px solid rgba(var(--krot-emerald-rgb), 0.3);
  clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
  animation: security-pulse-hex 3s ease-in-out infinite;
  z-index: -2;
}

@keyframes security-pulse-hex {
  0%, 100% { transform: scale(1); opacity: 0.5; }
  50% { transform: scale(1.15); opacity: 0; }
}

.security-shield-visual:hover .security-shield-icon {
  background: rgba(var(--krot-emerald-rgb), 0.2);
  box-shadow: 0 0 40px rgba(var(--krot-emerald-rgb), 0.3);
  transform: scale(1.05);
}

/* Security Features List - Graphite Style */
.security-feature-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.25rem 1.5rem;
  background: var(--krot-glass-bg);
  border: 1px solid var(--bs-border-color);
  border-radius: 1rem;
  transition: all 0.3s ease;
}

.security-feature-item:hover {
  background: var(--krot-glass-bg-stronger);
  border-color: rgba(var(--krot-emerald-rgb), 0.4);
  transform: translateX(8px);
  box-shadow: var(--bs-box-shadow);
}

.security-feature-icon {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  color: var(--krot-emerald);
  background: rgba(var(--krot-emerald-rgb), 0.1);
  border-radius: 0.75rem;
  transition: all 0.3s ease;
}

.security-feature-item:hover .security-feature-icon {
  background: var(--krot-emerald);
  color: #fff;
  box-shadow: 0 0 15px rgba(var(--krot-emerald-rgb), 0.4);
}

.security-feature-content h5 {
  margin: 0 0 0.25rem;
  font-size: 1rem;
  font-weight: 600;
}

.security-feature-content p {
  margin: 0;
  font-size: 0.875rem;
  color: var(--bs-secondary-color);
}

/* Responsive */
@media (max-width: 991.98px) {
  #security .security-glow-primary,
  #security .security-glow-secondary {
    opacity: 0.7;
  }
}

@media (max-width: 767.98px) {
  #security .security-glow-primary,
  #security .security-glow-secondary {
    opacity: 0.5;
  }

  .security-shield-visual {
    padding: 2rem;
  }

  .security-shield-icon {
    width: 100px;
    height: 100px;
    font-size: 2.5rem;
  }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  #security .security-glow-primary,
  #security .security-glow-secondary {
    animation: none;
  }

  .security-shield-icon::before,
  .security-shield-icon::after {
    animation: none;
  }

  #security .card.card-glass:hover {
    transform: translateY(-4px);
  }

  .security-feature-item:hover {
    transform: none;
  }
}

/* ==========================================================================
   Integrations Section
   ========================================================================== */

#integrations {
  position: relative;
  overflow-x: clip;
}

/* Background Glow Effects */
#integrations .integrations-glow-primary {
  position: absolute;
  top: -10%;
  right: -5%;
  width: 50%;
  height: 80%;
  background: radial-gradient(
    ellipse at center,
    rgba(var(--krot-accent-rgb), 0.12) 0%,
    transparent 60%
  );
  animation: integrations-glow-pulse 12s ease-in-out infinite;
  pointer-events: none;
  z-index: 0;
}

#integrations .integrations-glow-secondary {
  position: absolute;
  bottom: -15%;
  left: -8%;
  width: 45%;
  height: 70%;
  background: radial-gradient(
    ellipse at center,
    rgba(var(--krot-purple-rgb), 0.1) 0%,
    transparent 60%
  );
  animation: integrations-glow-pulse 15s ease-in-out infinite reverse;
  pointer-events: none;
  z-index: 0;
}

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

/* --- Integrations Hub Layout --- */
.integrations-hub {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 3rem 0;
}

/* --- Central KROT AI Core --- */
.integration-core {
  position: relative;
  width: 180px;
  height: 180px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 3rem;
  z-index: 10;
}

.core-center {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 5;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
}

.core-icon {
  width: 80px;
  height: 80px;
  background: var(--krot-gradient-accent);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow:
    0 10px 40px rgba(var(--krot-accent-rgb), 0.5),
    0 0 60px rgba(var(--krot-purple-rgb), 0.3);
  transition: all 0.4s ease;
}

.core-icon i {
  font-size: 2rem;
  color: var(--bs-body-bg);
}

.integration-core:hover .core-icon {
  transform: scale(1.1);
  box-shadow:
    0 15px 50px rgba(var(--krot-accent-rgb), 0.6),
    0 0 80px rgba(var(--krot-purple-rgb), 0.4);
}

.core-label {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  margin-top: 0.5rem;
  font-family: var(--krot-font-heading);
  font-size: 1.125rem;
  font-weight: 700;
  background: var(--krot-gradient-accent);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  white-space: nowrap;
}

/* Core Rotating Rings */
.core-rings {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.core-ring {
  position: absolute;
  border-radius: 50%;
  border: 2px dashed transparent;
}

.core-ring-1 {
  width: 120px;
  height: 120px;
  border-color: rgba(var(--krot-accent-rgb), 0.3);
  animation: core-ring-rotate 25s linear infinite;
}

.core-ring-2 {
  width: 150px;
  height: 150px;
  border-color: rgba(var(--krot-purple-rgb), 0.25);
  animation: core-ring-rotate 20s linear infinite reverse;
}

.core-ring-3 {
  width: 180px;
  height: 180px;
  border-color: rgba(var(--krot-accent-rgb), 0.15);
  animation: core-ring-rotate 30s linear infinite;
}

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

/* Core Pulse Effect */
.core-pulse {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 80px;
  height: 80px;
  border-radius: 50%;
  border: 2px solid rgba(var(--krot-accent-rgb), 0.5);
  animation: core-pulse-expand 3s ease-out infinite;
}

.core-pulse-2 {
  animation-delay: 1.5s;
}

@keyframes core-pulse-expand {
  0% {
    transform: translate(-50%, -50%) scale(1);
    opacity: 0.8;
  }
  100% {
    transform: translate(-50%, -50%) scale(2.5);
    opacity: 0;
  }
}

/* --- Integrations Grid --- */
.integrations-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  width: 100%;
  max-width: 900px;
}

/* --- Integration Item --- */
.integration-item {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Integration Connector Line */
.integration-connector {
  display: none; /* Hidden on grid layout, visible on radial layout if needed */
}

/* --- Integration Card --- */
.integration-card {
  padding: 1.5rem;
  border-radius: var(--bs-border-radius-lg);
  text-align: center;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  width: 100%;
  position: relative;
  overflow: hidden;
}

.integration-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    transparent 0%,
    rgba(var(--krot-accent-rgb), 0.03) 50%,
    transparent 100%
  );
  opacity: 0;
  transition: opacity 0.4s ease;
}

.integration-card:hover {
  transform: translateY(-8px);
  border-color: rgba(var(--krot-accent-rgb), 0.4);
  box-shadow:
    0 20px 40px rgba(0, 0, 0, 0.3),
    0 0 30px rgba(var(--krot-accent-rgb), 0.15);
}

.integration-card:hover::before {
  opacity: 1;
}

.integration-card h4 {
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--bs-emphasis-color);
  transition: color var(--krot-transition-base);
}

.integration-card p {
  font-size: 0.875rem;
  color: var(--bs-secondary-color);
  margin-bottom: 0;
}

.integration-card:hover h4 {
  color: var(--krot-accent);
}

/* --- Integration Icons --- */
.integration-icon {
  width: 56px;
  height: 56px;
  border-radius: var(--bs-border-radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
  transition: all 0.4s ease;
  position: relative;
}

.integration-icon i {
  font-size: 1.5rem;
  position: relative;
  z-index: 2;
}

/* Icon pulse ring */
.integration-icon::before {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: inherit;
  border: 2px solid transparent;
  opacity: 0;
  transition: all 0.4s ease;
}

.integration-card:hover .integration-icon {
  transform: scale(1.1);
}

.integration-card:hover .integration-icon::before {
  opacity: 1;
}

/* Icon Color Variants */
.integration-icon-orange {
  background: rgba(245, 158, 11, 0.15);
  border: 1px solid rgba(245, 158, 11, 0.3);
}
.integration-icon-orange i { color: #f59e0b; }
.integration-icon-orange::before { border-color: rgba(245, 158, 11, 0.4); }

.integration-icon-blue {
  background: rgba(59, 130, 246, 0.15);
  border: 1px solid rgba(59, 130, 246, 0.3);
}
.integration-icon-blue i { color: #3b82f6; }
.integration-icon-blue::before { border-color: rgba(59, 130, 246, 0.4); }

.integration-icon-green {
  background: rgba(34, 197, 94, 0.15);
  border: 1px solid rgba(34, 197, 94, 0.3);
}
.integration-icon-green i { color: #22c55e; }
.integration-icon-green::before { border-color: rgba(34, 197, 94, 0.4); }

.integration-icon-purple {
  background: rgba(139, 92, 246, 0.15);
  border: 1px solid rgba(139, 92, 246, 0.3);
}
.integration-icon-purple i { color: #8b5cf6; }
.integration-icon-purple::before { border-color: rgba(139, 92, 246, 0.4); }

.integration-icon-cyan {
  background: rgba(6, 182, 212, 0.15);
  border: 1px solid rgba(6, 182, 212, 0.3);
}
.integration-icon-cyan i { color: #06b6d4; }
.integration-icon-cyan::before { border-color: rgba(6, 182, 212, 0.4); }

.integration-icon-teal {
  background: rgba(20, 184, 166, 0.15);
  border: 1px solid rgba(20, 184, 166, 0.3);
}
.integration-icon-teal i { color: #14b8a6; }
.integration-icon-teal::before { border-color: rgba(20, 184, 166, 0.4); }

/* --- Integration Features --- */
.integration-feature {
  padding: 1.5rem;
  border-radius: var(--bs-border-radius-lg);
  text-align: center;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  height: 100%;
}

.integration-feature:hover {
  transform: translateY(-5px);
  border-color: rgba(var(--krot-accent-rgb), 0.3);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

.integration-feature .feature-icon {
  width: 48px;
  height: 48px;
  background: rgba(var(--krot-accent-rgb), 0.15);
  border: 1px solid rgba(var(--krot-accent-rgb), 0.3);
  border-radius: var(--bs-border-radius);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
  transition: all 0.3s ease;
}

.integration-feature .feature-icon i {
  font-size: 1.25rem;
  color: var(--krot-accent);
}

.integration-feature:hover .feature-icon {
  background: rgba(var(--krot-accent-rgb), 0.25);
  transform: scale(1.1);
}

.integration-feature h5 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
  color: var(--bs-emphasis-color);
}

/* --- Responsive --- */
@media (max-width: 991.98px) {
  .integrations-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }

  .integration-core {
    width: 150px;
    height: 150px;
    margin-bottom: 2.5rem;
  }

  .core-icon {
    width: 70px;
    height: 70px;
  }

  .core-icon i {
    font-size: 1.75rem;
  }

  .core-ring-1 { width: 100px; height: 100px; }
  .core-ring-2 { width: 125px; height: 125px; }
  .core-ring-3 { width: 150px; height: 150px; }

  .core-pulse {
    width: 70px;
    height: 70px;
  }
}

@media (max-width: 767.98px) {
  .integrations-hub {
    padding: 2rem 0;
  }

  .integration-core {
    width: 130px;
    height: 130px;
    margin-bottom: 2rem;
  }

  .core-icon {
    width: 60px;
    height: 60px;
  }

  .core-icon i {
    font-size: 1.5rem;
  }

  .core-label {
    font-size: 1rem;
  }

  .core-ring-1 { width: 85px; height: 85px; }
  .core-ring-2 { width: 107px; height: 107px; }
  .core-ring-3 { width: 130px; height: 130px; }

  .core-pulse {
    width: 60px;
    height: 60px;
  }

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

  .integration-card {
    padding: 1.25rem 1rem;
  }

  .integration-icon {
    width: 48px;
    height: 48px;
    margin-bottom: 0.75rem;
  }

  .integration-icon i {
    font-size: 1.25rem;
  }

  .integration-card h4 {
    font-size: 1rem;
  }

  .integration-card p {
    font-size: 0.8125rem;
  }

  #integrations .integrations-glow-primary,
  #integrations .integrations-glow-secondary {
    opacity: 0.5;
  }
}

@media (max-width: 575.98px) {
  .integrations-grid {
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
  }

  .integration-card {
    padding: 1rem 0.75rem;
  }

  .integration-icon {
    width: 44px;
    height: 44px;
  }

  .integration-card h4 {
    font-size: 0.9375rem;
  }

  .integration-card p {
    font-size: 0.75rem;
  }

  .integration-feature {
    padding: 1.25rem 1rem;
  }

  .integration-feature h5 {
    font-size: 0.9375rem;
  }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  #integrations .integrations-glow-primary,
  #integrations .integrations-glow-secondary {
    animation: none;
  }

  .core-ring-1,
  .core-ring-2,
  .core-ring-3 {
    animation: none;
  }

  .core-pulse,
  .core-pulse-2 {
    animation: none;
    opacity: 0;
  }

  .integration-card:hover {
    transform: translateY(-4px);
  }

  .integration-card:hover .integration-icon {
    transform: scale(1.05);
  }

  .integration-feature:hover {
    transform: translateY(-3px);
  }
}

/* ==========================================================================
   Mobile: Prevent Horizontal Scroll from Floating Glow Elements
   ========================================================================== */

@media (max-width: 991.98px) {
  .section-dark,
  #problems,
  #solution,
  #how-it-works,
  #architecture,
  #comparison,
  #security,
  #integrations {
    overflow: clip;
  }
}

/* ==========================================================================
   Light Theme Overrides
   ========================================================================== */

/* --- How It Works Section --- */

/* Step Cards */
[data-bs-theme="light"] .hiw-step-card {
  background: rgba(255, 255, 255, 0.8);
  border-color: rgba(148, 163, 184, 0.2);
}

[data-bs-theme="light"] .hiw-step-card:hover,
[data-bs-theme="light"] .hiw-step.active .hiw-step-card {
  background: rgba(255, 255, 255, 0.95);
  border-color: rgba(8, 145, 178, 0.3);
  box-shadow:
    0 25px 50px rgba(0, 0, 0, 0.08),
    0 0 40px rgba(8, 145, 178, 0.08);
}

[data-bs-theme="light"] .hiw-step.active .hiw-step-card {
  border-color: rgba(8, 145, 178, 0.4);
  box-shadow:
    0 25px 50px rgba(0, 0, 0, 0.1),
    0 0 50px rgba(8, 145, 178, 0.1);
}

/* Step Number Badge */
[data-bs-theme="light"] .hiw-step-number {
  background: rgba(241, 245, 249, 1);
  border-color: rgba(148, 163, 184, 0.3);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
}

/* Connectors */
[data-bs-theme="light"] .connector-line {
  background: rgba(148, 163, 184, 0.3);
}

/* KROT Central Card */
[data-bs-theme="light"] .hiw-krot-card {
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.98), rgba(241, 245, 249, 0.98));
  border-color: rgba(8, 145, 178, 0.2);
  box-shadow:
    0 20px 60px rgba(0, 0, 0, 0.08),
    inset 0 0 30px rgba(8, 145, 178, 0.03);
}

[data-bs-theme="light"] .hiw-krot-card:hover,
[data-bs-theme="light"] .hiw-step.active .hiw-krot-card {
  box-shadow:
    0 30px 60px rgba(0, 0, 0, 0.12),
    0 0 60px rgba(8, 145, 178, 0.08);
  border-color: rgba(8, 145, 178, 0.4);
}

/* KROT Card Text */
[data-bs-theme="light"] .hiw-krot-card .hiw-step-content p {
  color: var(--bs-secondary-color);
}

[data-bs-theme="light"] .hiw-krot-card:hover .hiw-krot-title {
  background: var(--krot-gradient-accent);
  -webkit-background-clip: text;
  background-clip: text;
  text-shadow: none;
}

/* KROT Process Items */
[data-bs-theme="light"] .krot-process-item {
  background: rgba(241, 245, 249, 0.9);
  border-color: rgba(148, 163, 184, 0.2);
  color: var(--bs-body-color);
}

[data-bs-theme="light"] .krot-process-item.active {
  background: rgba(8, 145, 178, 0.1);
  border-color: rgba(8, 145, 178, 0.3);
  color: var(--bs-emphasis-color);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

[data-bs-theme="light"] .hiw-krot-card:hover .krot-process-item {
  background: rgba(241, 245, 249, 0.95);
  border-color: rgba(148, 163, 184, 0.3);
}

/* Progress Dots */
[data-bs-theme="light"] .hiw-progress-dot {
  background: rgba(255, 255, 255, 0.9);
  border-color: rgba(148, 163, 184, 0.3);
}

[data-bs-theme="light"] .hiw-progress-dot:hover {
  background: rgba(255, 255, 255, 1);
  border-color: rgba(8, 145, 178, 0.4);
  box-shadow: 0 0 15px rgba(8, 145, 178, 0.15);
}

[data-bs-theme="light"] .hiw-progress-dot:hover span {
  color: var(--bs-emphasis-color);
}

/* Completed state - green background */
[data-bs-theme="light"] .hiw-progress-dot.completed {
  background: var(--bs-success);
  border-color: transparent;
}

[data-bs-theme="light"] .hiw-progress-dot.completed span {
  color: #fff;
}

/* Active state - accent gradient */
[data-bs-theme="light"] .hiw-progress-dot.active {
  background: var(--krot-gradient-accent);
  border-color: transparent;
  box-shadow: 0 0 20px rgba(8, 145, 178, 0.3);
}

[data-bs-theme="light"] .hiw-progress-dot.active span {
  color: #fff;
}

/* KROT Icon in card - ensure visibility on light bg */
[data-bs-theme="light"] .krot-icon-wrapper i {
  color: #fff;
}

/* --- Advantages Section Icons --- */

/* Secondary icons (purple) - ensure visibility on light bg */
/* Override !important from components.css */
[data-bs-theme="light"] #advantages .card-icon-secondary i {
  color: #8b5cf6 !important;
}

/* On hover, keep white icon since gradient bg is visible */
[data-bs-theme="light"] #advantages .card.card-glass:hover .card-icon-secondary i {
  color: #fff !important;
}

/* --- Solution Section (Bento Grid) --- */

/* Bento Card Background */
[data-bs-theme="light"] .bento-card {
  background: rgba(255, 255, 255, 0.85);
  border-color: rgba(148, 163, 184, 0.2);
}

[data-bs-theme="light"] .bento-card:hover {
  background: rgba(255, 255, 255, 0.95);
  border-color: rgba(8, 145, 178, 0.3);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08), 0 0 30px rgba(8, 145, 178, 0.08);
}

/* Main Card Gradient */
[data-bs-theme="light"] .bento-main {
  background: linear-gradient(165deg, rgba(255, 255, 255, 0.9) 0%, rgba(241, 245, 249, 0.9) 100%);
}

/* Main Card Heading - "Единая ИИ-платформа" */
[data-bs-theme="light"] .bento-content h3 {
  background: linear-gradient(to right, var(--bs-emphasis-color), var(--bs-secondary-color));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Main Card List Items */
[data-bs-theme="light"] .bento-list li {
  color: var(--bs-body-color);
}

/* Secondary Card Headings - "Умные интервью", "Глубокий RCA-анализ" */
[data-bs-theme="light"] .bento-secondary h4 {
  color: var(--bs-emphasis-color);
}

/* Tertiary Card Headings - "Готовые отчёты", "Конфиденциальность", "Интеграции" */
[data-bs-theme="light"] .bento-tertiary h5 {
  color: var(--bs-emphasis-color);
}

/* Stat Labels - "Быстрее", "Доступность" */
[data-bs-theme="light"] .stat-label {
  color: var(--bs-secondary-color);
}

/* Subtle Background Colors - enhanced for light theme */
[data-bs-theme="light"] .bg-purple-subtle {
  background: rgba(139, 92, 246, 0.12);
}

[data-bs-theme="light"] .bg-blue-subtle {
  background: rgba(8, 145, 178, 0.12);
}

[data-bs-theme="light"] .bg-success-subtle {
  background: rgba(25, 135, 84, 0.12);
}

[data-bs-theme="light"] .bg-warning-subtle {
  background: rgba(255, 193, 7, 0.12);
}

[data-bs-theme="light"] .bg-info-subtle {
  background: rgba(13, 202, 240, 0.12);
}

/* Hide glow effects on light theme */
[data-bs-theme="light"] #solution .solution-glow-primary,
[data-bs-theme="light"] #solution .solution-glow-secondary,
[data-bs-theme="light"] #solution .solution-glow-center {
  opacity: 0.3;
}

/* --- Contact Section --- */

[data-bs-theme="light"] .contact-info-card-unified {
  background: linear-gradient(165deg, rgba(255, 255, 255, 0.98) 0%, rgba(241, 245, 249, 0.98) 100%);
  border-color: rgba(148, 163, 184, 0.2);
}

[data-bs-theme="light"] .contact-form-card {
  background: linear-gradient(165deg, rgba(255, 255, 255, 0.98) 0%, rgba(241, 245, 249, 0.98) 100%);
  border-color: rgba(148, 163, 184, 0.2);
}

[data-bs-theme="light"] .contact-card-grid {
  background-image:
    linear-gradient(rgba(148, 163, 184, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(148, 163, 184, 0.08) 1px, transparent 1px);
}

/* Contact Stat Items */
[data-bs-theme="light"] .contact-stat-item {
  background: rgba(0, 0, 0, 0.02);
  border-color: rgba(148, 163, 184, 0.15);
}

[data-bs-theme="light"] .contact-stat-item:hover {
  background: rgba(8, 145, 178, 0.06);
  border-color: rgba(8, 145, 178, 0.2);
}

/* Contact Methods */
[data-bs-theme="light"] .contact-method {
  background: rgba(0, 0, 0, 0.02);
  border-color: rgba(148, 163, 184, 0.15);
}

[data-bs-theme="light"] .contact-method-icon {
  background: rgba(8, 145, 178, 0.08);
}

/* Contact Avatar Icon color */
[data-bs-theme="light"] .contact-avatar-main {
  color: #fff;
}

/* Skolkovo Badge Icon color */
[data-bs-theme="light"] .skolkovo-badge-icon {
  color: #fff;
}

/* Interest Type Buttons */
[data-bs-theme="light"] .interest-btn {
  background: rgba(241, 245, 249, 0.8);
  border-color: rgba(148, 163, 184, 0.2);
}

[data-bs-theme="light"] .interest-btn:hover {
  background: rgba(255, 255, 255, 0.95);
  border-color: rgba(148, 163, 184, 0.4);
}

[data-bs-theme="light"] .interest-btn-icon {
  background: rgba(8, 145, 178, 0.08);
}

[data-bs-theme="light"] .interest-btn:hover .interest-btn-icon {
  background: rgba(8, 145, 178, 0.12);
}

/* Checked Interest Button Icon */
[data-bs-theme="light"] .interest-input:checked + .interest-btn .interest-btn-icon {
  color: #fff;
}

/* Checked + Hover: keep gradient background and white icon */
[data-bs-theme="light"] .interest-input:checked + .interest-btn:hover .interest-btn-icon {
  background: var(--krot-gradient-accent);
  color: #fff;
}

/* Form Fields */
[data-bs-theme="light"] .form-field-enhanced {
  background: rgba(255, 255, 255, 0.8);
  border-color: rgba(148, 163, 184, 0.2);
}

[data-bs-theme="light"] .form-field-enhanced:hover {
  background: rgba(255, 255, 255, 0.95);
  border-color: rgba(148, 163, 184, 0.4);
}

[data-bs-theme="light"] .form-field-enhanced:focus-within {
  background: rgba(255, 255, 255, 1);
}
