/* Prismatic Clarity — optical motion layer */

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

@keyframes soft-pulse {
  0%, 100% { opacity: 0.6; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.03); }
}

@keyframes ray-drift {
  0% { transform: translateX(-20%) rotate(-35deg); opacity: 0; }
  20% { opacity: 0.6; }
  80% { opacity: 0.6; }
  100% { transform: translateX(120%) rotate(-35deg); opacity: 0; }
}

@keyframes spectrum-shift {
  0%, 100% { stop-color: #1054A0; }
  33% { stop-color: #2B7FD4; }
  66% { stop-color: #C8860A; }
}

/* Header nav underline */
.nav-desktop a {
  position: relative;
}

.nav-desktop a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--color-primary);
  border-radius: 1px;
  transition: width 0.3s ease;
}

.nav-desktop a:hover::after,
.nav-desktop a.active::after {
  width: 100%;
}

/* Hero layout */
.hero-bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.hero-rays {
  position: absolute;
  inset: 0;
}

.hero-ray {
  position: absolute;
  width: 2px;
  height: 200%;
  top: -50%;
  background: linear-gradient(
    to bottom,
    transparent 0%,
    rgba(16, 84, 160, 0.15) 30%,
    rgba(200, 134, 10, 0.2) 50%,
    rgba(16, 84, 160, 0.15) 70%,
    transparent 100%
  );
  transform: rotate(-35deg);
  animation: ray-drift 8s ease-in-out infinite;
}

.hero-ray--1 { left: 15%; animation-delay: 0s; }
.hero-ray--2 { left: 35%; animation-delay: 2s; width: 1px; }
.hero-ray--3 { left: 55%; animation-delay: 4s; }
.hero-ray--4 { left: 75%; animation-delay: 1s; width: 1px; }
.hero-ray--5 { left: 90%; animation-delay: 3s; }

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
  position: relative;
  z-index: 2;
}

.hero-visual {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 400px;
}

.hero-prism {
  position: relative;
  width: min(360px, 85vw);
  height: min(360px, 85vw);
  display: flex;
  align-items: center;
  justify-content: center;
  animation: gentle-float 8s ease-in-out infinite;
}

.hero-prism-ring {
  position: absolute;
  border-radius: 50%;
  border: 2px solid rgba(16, 84, 160, 0.12);
}

.hero-prism-ring--1 {
  width: 100%;
  height: 100%;
}

.hero-prism-ring--2 {
  width: 78%;
  height: 78%;
  border-color: rgba(200, 134, 10, 0.18);
  animation: soft-pulse 4s ease-in-out infinite;
}

.hero-prism-core {
  position: relative;
  z-index: 2;
  width: 180px;
  height: 180px;
}

.hero-prism-core svg {
  width: 100%;
  height: 100%;
  filter: drop-shadow(0 8px 24px rgba(16, 84, 160, 0.2));
}

.hero-hud {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
}

.hero-hud span {
  padding: 6px 14px;
  background: var(--bg-surface);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-pill);
  font-size: 0.625rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-primary);
  box-shadow: var(--shadow-card);
}

.hero-badge-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--color-accent);
  flex-shrink: 0;
  animation: soft-pulse 2s ease-in-out infinite;
}

.glass-card > * {
  position: relative;
  z-index: 1;
}

/* Testimonial quote mark */
.testimonial-card::before {
  content: '\201C';
  position: absolute;
  top: 12px;
  right: 24px;
  font-family: var(--font-heading);
  font-size: 3.5rem;
  line-height: 1;
  color: rgba(16, 84, 160, 0.1);
}

.timeline-step:hover .step-num {
  transform: scale(1.06);
  transition: transform 0.3s ease;
}

@media (max-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }

  .hero-visual {
    min-height: 280px;
    order: -1;
  }
}

@media (max-width: 768px) {
  .hero-prism {
    width: min(260px, 75vw);
    height: min(260px, 75vw);
  }

  .hero-prism-core {
    width: 140px;
    height: 140px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
