/* =============================================
   TECHNOLOGY.CSS — Casper and Saint
   ============================================= */

.technology {
  position: relative;
  overflow: hidden;
}

.tech-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 60% at 80% 30%, rgba(28, 75, 168, 0.4) 0%, transparent 60%),
    radial-gradient(ellipse 50% 70% at 10% 80%, rgba(201, 168, 76, 0.08) 0%, transparent 50%),
    linear-gradient(160deg, #0D1B3E 0%, #122256 50%, #0D1B3E 100%);
  z-index: 0;
}

.technology .container {
  position: relative;
  z-index: 2;
}

.technology .section-label {
  color: var(--gold);
}

.technology .section-title {
  color: var(--white);
}

.technology .section-desc {
  color: rgba(255,255,255,0.65);
}

/* Grid */
.tech-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-md);
  margin-bottom: var(--space-2xl);
}

/* Item */
.tech-item {
  padding: var(--space-xl) var(--space-lg);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius-md);
  background: rgba(255,255,255,0.04);
  backdrop-filter: blur(8px);
  transition: all var(--duration-mid) var(--ease-out);
  position: relative;
  overflow: hidden;
}

.tech-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(to right, transparent, var(--gold), transparent);
  opacity: 0;
  transition: opacity var(--duration-mid);
}

.tech-item:hover {
  background: rgba(255,255,255,0.08);
  border-color: rgba(201, 168, 76, 0.3);
  transform: translateY(-4px);
  box-shadow: 0 20px 50px rgba(0,0,0,0.3);
}

.tech-item:hover::before {
  opacity: 1;
}

/* Number */
.tech-num {
  font-family: var(--font-display);
  font-size: 3rem;
  letter-spacing: 0.04em;
  color: rgba(255,255,255,0.06);
  line-height: 1;
  margin-bottom: 0.5rem;
  transition: color var(--duration-mid);
}

.tech-item:hover .tech-num {
  color: rgba(201, 168, 76, 0.15);
}

/* Icon */
.tech-icon {
  width: 36px;
  height: 36px;
  color: var(--gold);
  margin-bottom: var(--space-md);
}

.tech-icon svg {
  width: 100%;
  height: 100%;
}

/* Text */
.tech-item h4 {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: 0.6rem;
}

.tech-item p {
  font-size: 0.84rem;
  color: rgba(255,255,255,0.6);
  line-height: 1.7;
}

/* CTA bar */
.tech-cta {
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius-md);
  padding: var(--space-xl) var(--space-2xl);
  background: rgba(255,255,255,0.03);
  display: flex;
  align-items: center;
  justify-content: center;
}

.tech-cta-text {
  display: flex;
  gap: var(--space-2xl);
  align-items: center;
  flex-wrap: wrap;
  justify-content: center;
}

.tech-cta-text span {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 3vw, 2rem);
  letter-spacing: 0.08em;
  color: var(--white);
}

.tech-cta-text span:not(:last-child)::after {
  content: '  ·';
  color: var(--gold);
  margin-left: var(--space-2xl);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .tech-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .tech-grid {
    grid-template-columns: 1fr;
  }
  .tech-cta-text {
    flex-direction: column;
    gap: var(--space-sm);
    text-align: center;
  }
  .tech-cta-text span::after {
    display: none;
  }
}
