/* ============================================
   TECHNOLOGY DEEP-DIVE SECTION
   ============================================ */

.technology {
  background: #0A0E27;
  color: #ffffff;
  padding: clamp(6rem, 10vh, 12rem) 0;
  position: relative;
  overflow: hidden;
}

.technology__inner {
  display: flex;
  flex-direction: column;
  gap: clamp(5rem, 8vh, 8rem);
}

/* Header */
.technology__header {
  text-align: center;
  max-width: 900px;
  margin: 0 auto;
}

.technology__headline {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(4rem, 10vw, 8rem);
  line-height: 0.95;
  margin: 1rem 0 2rem;
  letter-spacing: -0.02em;
  color: #ffffff;
}

.technology__intro {
  font-family: 'Inter', sans-serif;
  font-size: clamp(1.1rem, 2vw, 1.3rem);
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.7);
  max-width: 700px;
  margin: 0 auto;
}

/* Content Blocks */
.technology__block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(3rem, 5vw, 6rem);
  align-items: center;
}

.technology__block--right {
  direction: rtl;
}

.technology__block--right > * {
  direction: ltr;
}

.technology__content {
  max-width: 540px;
}

.technology__block--left .technology__content {
  margin-left: auto;
}

.technology__block--right .technology__content {
  margin-right: auto;
}

.technology__block-title {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 600;
  line-height: 1.2;
  margin-bottom: 1.5rem;
  color: #ffffff;
}

.technology__block-text {
  font-family: 'Inter', sans-serif;
  font-size: 1.05rem;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.75);
}

/* CSS Art Container */
.technology__art {
  position: relative;
  width: 100%;
  max-width: 500px;
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Art 1: Glass Box Grid */
.art-glass__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  width: 80%;
  height: 80%;
  position: relative;
  z-index: 2;
}

.art-glass__cell {
  border: 2px solid rgba(77, 101, 255, 0.3);
  background: rgba(77, 101, 255, 0.05);
  border-radius: 4px;
  position: relative;
  transition: all 0.3s ease;
}

.art-glass__cell::before {
  content: '';
  position: absolute;
  inset: 4px;
  border: 1px solid rgba(77, 101, 255, 0.15);
  border-radius: 2px;
}

.art-glass__cell--active {
  border-color: #4d65ff;
  background: rgba(77, 101, 255, 0.2);
  box-shadow: 0 0 30px rgba(77, 101, 255, 0.4);
}

.art-glass__scan {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg,
    transparent 0%,
    #4d65ff 50%,
    transparent 100%);
  animation: glassBoxScan 3s ease-in-out infinite;
}

@keyframes glassBoxScan {
  0%, 100% { transform: translateY(0); opacity: 0; }
  10% { opacity: 1; }
  90% { opacity: 1; }
  100% { transform: translateY(400px); opacity: 0; }
}

/* Art 2: Trust Gradient */
.technology__art--gradient {
  flex-direction: column;
  gap: 1rem;
  padding: 3rem;
}

.art-gradient__bar {
  width: 100%;
  height: 60px;
  border-radius: 8px;
  position: relative;
  border: 2px solid rgba(77, 101, 255, 0.3);
  overflow: hidden;
}

.art-gradient__bar::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg,
    rgba(77, 101, 255, 0.1) 0%,
    rgba(77, 101, 255, 0.4) 100%);
}

.art-gradient__bar--low::before {
  width: 30%;
  background: linear-gradient(90deg,
    rgba(77, 101, 255, 0.2) 0%,
    rgba(77, 101, 255, 0.5) 100%);
}

.art-gradient__bar--med::before {
  width: 65%;
  background: linear-gradient(90deg,
    rgba(77, 101, 255, 0.3) 0%,
    rgba(77, 101, 255, 0.6) 100%);
}

.art-gradient__bar--high::before {
  width: 90%;
  background: linear-gradient(90deg,
    rgba(77, 101, 255, 0.4) 0%,
    #4d65ff 100%);
  box-shadow: 0 0 20px rgba(77, 101, 255, 0.5);
}

.art-gradient__threshold {
  position: absolute;
  right: 20%;
  top: 10%;
  bottom: 10%;
  width: 3px;
  background: #4d65ff;
  box-shadow: 0 0 15px rgba(77, 101, 255, 0.8);
}

.art-gradient__label {
  position: absolute;
  right: calc(20% - 30px);
  top: -40px;
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.2rem;
  color: #4d65ff;
  letter-spacing: 0.1em;
}

/* Art 3: 7-Engine Intelligence */
.art-engines__grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 1rem;
  width: 90%;
  position: relative;
  z-index: 2;
}

.art-engines__node {
  aspect-ratio: 1;
  border: 2px solid rgba(77, 101, 255, 0.4);
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%,
    rgba(77, 101, 255, 0.3),
    rgba(77, 101, 255, 0.1));
  position: relative;
  animation: enginePulse 2s ease-in-out infinite;
}

.art-engines__node::before {
  content: attr(data-engine);
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.2rem;
  color: #4d65ff;
}

.art-engines__node:nth-child(1) { animation-delay: 0s; }
.art-engines__node:nth-child(2) { animation-delay: 0.15s; }
.art-engines__node:nth-child(3) { animation-delay: 0.3s; }
.art-engines__node:nth-child(4) { animation-delay: 0.45s; }
.art-engines__node:nth-child(5) { animation-delay: 0.6s; }
.art-engines__node:nth-child(6) { animation-delay: 0.75s; }
.art-engines__node:nth-child(7) { animation-delay: 0.9s; }

@keyframes enginePulse {
  0%, 100% {
    border-color: rgba(77, 101, 255, 0.4);
    box-shadow: 0 0 0 rgba(77, 101, 255, 0);
  }
  50% {
    border-color: #4d65ff;
    box-shadow: 0 0 20px rgba(77, 101, 255, 0.6);
  }
}

.art-engines__connector {
  position: absolute;
  bottom: -30px;
  left: 5%;
  right: 5%;
  height: 2px;
  background: linear-gradient(90deg,
    transparent 0%,
    rgba(77, 101, 255, 0.6) 10%,
    rgba(77, 101, 255, 0.6) 90%,
    transparent 100%);
  opacity: 0.5;
}

.art-engines__connector::before,
.art-engines__connector::after {
  content: '';
  position: absolute;
  width: 8px;
  height: 8px;
  background: #4d65ff;
  border-radius: 50%;
  top: -3px;
  box-shadow: 0 0 10px rgba(77, 101, 255, 0.8);
}

.art-engines__connector::before {
  left: 0;
  animation: connectorFlow 3s ease-in-out infinite;
}

.art-engines__connector::after {
  right: 0;
  animation: connectorFlow 3s ease-in-out infinite reverse;
}

@keyframes connectorFlow {
  0%, 100% { opacity: 0; }
  50% { opacity: 1; }
}

/* Mobile Responsive */
@media (max-width: 768px) {
  .technology {
    padding: clamp(4rem, 8vh, 6rem) 0;
  }

  .technology__inner {
    gap: clamp(4rem, 6vh, 5rem);
  }

  .technology__headline {
    font-size: clamp(3rem, 12vw, 5rem);
  }

  .technology__block {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .technology__block--right {
    direction: ltr;
  }

  .technology__content {
    max-width: 100%;
    margin: 0 !important;
  }

  .technology__art {
    max-width: 400px;
    margin: 0 auto;
  }

  .art-gradient__label {
    right: calc(20% - 25px);
    top: -35px;
    font-size: 1rem;
  }

  .art-engines__grid {
    grid-template-columns: repeat(7, 1fr);
    gap: 0.5rem;
  }

  .art-engines__node::before {
    font-size: 0.9rem;
  }
}

@media (max-width: 480px) {
  .technology__headline {
    font-size: clamp(2.5rem, 14vw, 4rem);
  }

  .technology__intro {
    font-size: 1rem;
  }

  .technology__block-title {
    font-size: clamp(1.5rem, 6vw, 2rem);
  }

  .technology__block-text {
    font-size: 0.95rem;
  }

  .art-glass__grid {
    gap: 1rem;
  }

  .art-gradient__bar {
    height: 50px;
  }

  .art-engines__grid {
    gap: 0.4rem;
  }

  .art-engines__node::before {
    font-size: 0.8rem;
  }
}
