/* =========================================================
   AUTONOMOUS AGENTS SECTION
========================================================= */

.autonomous-agents-section {
  width: 100%;
  padding: 40px 20px;
  box-sizing: border-box;
  font-family: Arial, Helvetica, sans-serif;
}

.autonomous-container {
  width: 100%;
  max-width: 1024px;
  margin: 0 auto;
}


/* =========================================================
   SECTION TITLE
========================================================= */

.capabilities-title {
  margin: 0 0 32px;
  text-align: center;

  color: #1a3a4a;

  font-size: 30px;
  line-height: 1.2;
  font-weight: 500;
}


/* =========================================================
   MAIN CARD
========================================================= */

.autonomous-card {
  position: relative;

  width: 100%;
  min-height: 340px;

  display: flex;
  align-items: center;

  gap: 16px;

  overflow: hidden;

  border-radius: 16px;

  border: 1px solid rgba(255, 255, 255, 0.9);

  background:
    linear-gradient(
      135deg,
      #f0f4fa 0%,
      #e8eef8 40%,
      #f5f0fa 100%
    );

  box-shadow:
    0 25px 60px rgba(50, 65, 100, 0.14),
    0 8px 25px rgba(50, 65, 100, 0.08);
}


/* =========================================================
   ORB COLUMN
========================================================= */

.orb-column {
  flex: 1;

  display: flex;
  align-items: center;
  justify-content: center;

  min-width: 0;
}


/* =========================================================
   SATURN SCENE
========================================================= */

.saturn-scene {
  position: relative;

  width: 528px;
  height: 528px;

  display: flex;
  align-items: center;
  justify-content: center;

  flex-shrink: 0;
}


/* =========================================================
   CANVAS
========================================================= */

#saturnBackCanvas,
#saturnFrontCanvas {
  position: absolute;

  left: 0;
  top: 0;

  width: 528px;
  height: 528px;

  pointer-events: none;
}

#saturnBackCanvas {
  z-index: 1;
}

#saturnFrontCanvas {
  z-index: 3;
}


/* =========================================================
   AI ORB
========================================================= */

.ai-orb {
  position: absolute;

  width: 240px;
  height: 240px;

  left: 50%;
  top: 50%;

  transform: translate(-50%, -50%);

  z-index: 2;

  border-radius: 50%;

  overflow: hidden;

  background:
    radial-gradient(
      circle at 30% 25%,
      #d9faff 0%,
      #8ce3ed 12%,
      #5b8de0 30%,
      #704bc1 54%,
      #39226e 76%,
      #160f35 100%
    );

  box-shadow:
    0 0 25px rgba(111, 79, 190, 0.35),
    0 0 60px rgba(92, 174, 210, 0.28),
    inset -25px -30px 50px rgba(20, 10, 55, 0.55),
    inset 20px 15px 35px rgba(255, 255, 255, 0.15);

  animation:
    orbFloat 4s ease-in-out infinite;
}


/* =========================================================
   ORB GLOW
========================================================= */

.orb-glow {
  position: absolute;

  inset: -20px;

  border-radius: 50%;

  background:
    radial-gradient(
      circle,
      rgba(105, 218, 231, 0.22),
      rgba(113, 69, 190, 0.15) 45%,
      transparent 70%
    );

  filter: blur(12px);

  pointer-events: none;
}


/* =========================================================
   ORB CORE
========================================================= */

.orb-core {
  position: absolute;

  inset: 0;

  border-radius: 50%;

  background:
    radial-gradient(
      circle at 35% 30%,
      rgba(255, 255, 255, 0.28),
      transparent 20%
    ),
    radial-gradient(
      circle at 65% 70%,
      rgba(105, 36, 180, 0.35),
      transparent 45%
    );

  animation:
    orbRotate 8s linear infinite;
}


/* =========================================================
   INNER GLOW
========================================================= */

.orb-inner-glow {
  position: absolute;

  width: 120px;
  height: 120px;

  left: 50%;
  top: 50%;

  transform: translate(-50%, -50%);

  border-radius: 50%;

  background:
    radial-gradient(
      circle,
      rgba(159, 245, 255, 0.55),
      rgba(96, 177, 224, 0.2) 35%,
      rgba(105, 55, 177, 0.08) 65%,
      transparent 75%
    );

  filter: blur(10px);

  animation:
    innerPulse 3s ease-in-out infinite;
}


/* =========================================================
   PARTICLES
========================================================= */

.orb-particles {
  position: absolute;

  inset: 0;

  pointer-events: none;
}

.orb-particles span {
  position: absolute;

  width: 3px;
  height: 3px;

  border-radius: 50%;

  background: rgba(210, 250, 255, 0.9);

  box-shadow:
    0 0 8px rgba(150, 240, 255, 0.9);

  animation:
    particleFloat 3s ease-in-out infinite;
}

.orb-particles span:nth-child(1) {
  left: 27%;
  top: 35%;
  animation-delay: 0s;
}

.orb-particles span:nth-child(2) {
  left: 67%;
  top: 28%;
  animation-delay: 0.5s;
}

.orb-particles span:nth-child(3) {
  left: 54%;
  top: 55%;
  animation-delay: 1s;
}

.orb-particles span:nth-child(4) {
  left: 32%;
  top: 63%;
  animation-delay: 1.5s;
}

.orb-particles span:nth-child(5) {
  left: 72%;
  top: 70%;
  animation-delay: 2s;
}

.orb-particles span:nth-child(6) {
  left: 43%;
  top: 23%;
  animation-delay: 0.8s;
}

.orb-particles span:nth-child(7) {
  left: 22%;
  top: 52%;
  animation-delay: 1.8s;
}


/* =========================================================
   RIGHT CONTENT
========================================================= */

.autonomous-content {
  flex: 1;

  padding: 30px 45px 30px 10px;

  box-sizing: border-box;
}


/* =========================================================
   MAIN TITLE
========================================================= */

.autonomous-title {
  margin: 0 0 16px;

  font-size: clamp(36px, 5vw, 50px);

  line-height: 0.95;

  font-weight: 800;

  letter-spacing: -0.04em;

  background:
    linear-gradient(
      135deg,
      #1a8fd1 0%,
      #353a80 35%,
      #7c3aed 65%,
      #4a0750 100%
    );

  -webkit-background-clip: text;
  background-clip: text;

  -webkit-text-fill-color: transparent;

  color: transparent;
}


/* =========================================================
   DESCRIPTION
========================================================= */

.autonomous-description {
  max-width: 320px;

  margin: 0 0 28px;

  color: #6b7a8d;

  font-size: 16px;

  line-height: 1.6;
}


/* =========================================================
   BUTTON
========================================================= */

.explore-button {
  display: inline-flex;

  align-items: center;
  justify-content: center;

  padding: 8px 48px;

  border: none;

  border-radius: 999px;

  background: #1a1a2e;

  color: #ffffff;

  font-size: 14px;
  font-weight: 500;

  cursor: pointer;

  transition:
    transform 0.2s ease,
    background 0.2s ease,
    box-shadow 0.2s ease;
}

.explore-button:hover {
  background: #2d2d50;

  transform: translateY(-2px);

  box-shadow:
    0 8px 20px rgba(26, 26, 46, 0.2);
}

.explore-button:active {
  transform: scale(0.96);
}


/* =========================================================
   ANIMATIONS
========================================================= */

@keyframes orbFloat {

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

  50% {
    transform:
      translate(-50%, -50%)
      translateY(-6px);
  }
}


@keyframes orbRotate {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(360deg);
  }
}


@keyframes innerPulse {

  0%,
  100% {
    transform:
      translate(-50%, -50%)
      scale(0.9);

    opacity: 0.7;
  }

  50% {
    transform:
      translate(-50%, -50%)
      scale(1.15);

    opacity: 1;
  }
}


@keyframes particleFloat {

  0%,
  100% {
    transform: translate(0, 0);
    opacity: 0.5;
  }

  50% {
    transform: translate(4px, -7px);
    opacity: 1;
  }
}


/* =========================================================
   RESPONSIVE
========================================================= */

@media (max-width: 900px) {

  .autonomous-card {
    flex-direction: column;

    padding: 20px 20px 35px;
  }

  .orb-column {
    width: 100%;
  }

  .autonomous-content {
    width: 100%;

    padding:
      0
      20px;

    text-align: center;

    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .autonomous-description {
    max-width: 500px;
  }
}


@media (max-width: 600px) {

  .autonomous-agents-section {
    padding:
      30px 12px;
  }

  .capabilities-title {
    font-size: 26px;

    margin-bottom: 24px;
  }

  .autonomous-card {
    min-height: auto;

    padding: 0 10px 30px;
  }

  .saturn-scene {
    width: 360px;
    height: 360px;

    transform: scale(0.9);
  }

  #saturnBackCanvas,
  #saturnFrontCanvas {
    width: 360px;
    height: 360px;
  }

  .ai-orb {
    width: 180px;
    height: 180px;
  }

  .autonomous-title {
    font-size: 40px;
  }

  .autonomous-description {
    font-size: 14px;
  }
}


@media (max-width: 400px) {

  .saturn-scene {
    width: 320px;
    height: 320px;

    transform: scale(0.85);
  }

  #saturnBackCanvas,
  #saturnFrontCanvas {
    width: 320px;
    height: 320px;
  }

  .ai-orb {
    width: 160px;
    height: 160px;
  }
}