/* =============================================================== */
/* --- SISTEMA DE ANIMAÃ‡Ã•ES PROFISSIONAIS - LANDING PAGE --- */
/* --- by Senior UI Engineer --- */
/* =============================================================== */

:root {
  --animation-timing: cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --animation-timing-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --animation-timing-smooth: cubic-bezier(0.4, 0, 0.2, 1);
}

/* =============================================================== */
/* --- BASE ANIMATIONS --- */
/* =============================================================== */

/* Reset for all animated elements */
[data-animate] {
  opacity: 0;
  will-change: transform, opacity;
}

[data-animate].animated {
  opacity: 1;
}

/* Fade Up - Classic entrada de baixo */
/* Fade Up - Classic entrada de baixo */
[data-animate="fade-up"] {
  transform: translateY(30px);
  transition:
    opacity 0.8s cubic-bezier(0.215, 0.61, 0.355, 1),
    transform 0.8s cubic-bezier(0.215, 0.61, 0.355, 1);
}

[data-animate="fade-up"].animated {
  transform: translateY(0);
}

/* Fade Down */
[data-animate="fade-down"] {
  transform: translateY(-60px);
  transition:
    opacity 0.8s var(--animation-timing),
    transform 0.8s var(--animation-timing);
}

[data-animate="fade-down"].animated {
  transform: translateY(0);
}

/* Fade Left */
[data-animate="fade-left"] {
  transform: translateX(-80px);
  transition:
    opacity 0.8s var(--animation-timing),
    transform 0.8s var(--animation-timing);
}

[data-animate="fade-left"].animated {
  transform: translateX(0);
}

/* Fade Right */
[data-animate="fade-right"] {
  transform: translateX(80px);
  transition:
    opacity 0.8s var(--animation-timing),
    transform 0.8s var(--animation-timing);
}

[data-animate="fade-right"].animated {
  transform: translateX(0);
}

/* Scale Up - Zoom in */
[data-animate="scale-up"] {
  transform: scale(0.8);
  transition:
    opacity 0.6s var(--animation-timing),
    transform 0.6s var(--animation-timing-spring);
}

[data-animate="scale-up"].animated {
  transform: scale(1);
}

/* Rotate In */
[data-animate="rotate-in"] {
  transform: rotate(-10deg) scale(0.9);
  transition:
    opacity 0.7s var(--animation-timing),
    transform 0.7s var(--animation-timing-spring);
}

[data-animate="rotate-in"].animated {
  transform: rotate(0) scale(1);
}

/* Flip In */
[data-animate="flip-in"] {
  transform: perspective(1000px) rotateX(-30deg);
  transform-origin: top center;
  transition:
    opacity 0.8s var(--animation-timing),
    transform 0.8s var(--animation-timing-spring);
}

[data-animate="flip-in"].animated {
  transform: perspective(1000px) rotateX(0);
}

/* Blur In */
[data-animate="blur-in"] {
  filter: blur(20px);
  transform: scale(1.1);
  transition:
    opacity 0.8s var(--animation-timing),
    transform 0.8s var(--animation-timing),
    filter 0.8s var(--animation-timing);
}

[data-animate="blur-in"].animated {
  filter: blur(0);
  transform: scale(1);
}

/* Clip Reveal - Reveal de cima */
[data-animate="clip-reveal"] {
  clip-path: polygon(0 0, 100% 0, 100% 0, 0 0);
  transition: clip-path 1s var(--animation-timing);
}

[data-animate="clip-reveal"].animated {
  clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
}

/* Draw Line */
[data-animate="draw-line"] {
  background: linear-gradient(90deg, var(--accent-blue), var(--accent-orange));
  height: 3px;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 1.2s var(--animation-timing);
}

[data-animate="draw-line"].animated {
  transform: scaleX(1);
}

/* =============================================================== */
/* --- STAGGER DELAYS --- */
/* =============================================================== */

[data-delay="100"] {
  transition-delay: 0.1s !important;
}
[data-delay="200"] {
  transition-delay: 0.2s !important;
}
[data-delay="300"] {
  transition-delay: 0.3s !important;
}
[data-delay="400"] {
  transition-delay: 0.4s !important;
}
[data-delay="500"] {
  transition-delay: 0.5s !important;
}
[data-delay="600"] {
  transition-delay: 0.6s !important;
}
[data-delay="700"] {
  transition-delay: 0.7s !important;
}
[data-delay="800"] {
  transition-delay: 0.8s !important;
}

/* =============================================================== */
/* Text gradient animation */
.text-gradient-animated {
  background: linear-gradient(
    90deg,
    var(--accent-blue),
    var(--primary-text),
    var(--accent-orange),
    var(--accent-blue)
  );
  background-size: 300% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: text-gradient-flow 6s ease infinite;
}

@keyframes text-gradient-flow {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

/* Typewriter effect */
.typewriter {
  overflow: hidden;
  border-right: 3px solid var(--accent-blue);
  white-space: nowrap;
  animation:
    typing 3s steps(40, end),
    blink-caret 0.75s step-end infinite;
}

@keyframes typing {
  from {
    width: 0;
  }
  to {
    width: 100%;
  }
}

@keyframes blink-caret {
  from,
  to {
    border-color: transparent;
  }
  50% {
    border-color: var(--accent-blue);
  }
}

/* =============================================================== */
/* --- FEATURE CARDS - PREMIUM --- */
/* =============================================================== */

.feature-card-premium {
  position: relative;
  background: linear-gradient(
    145deg,
    rgba(22, 27, 34, 0.9),
    rgba(13, 17, 23, 0.95)
  );
  backdrop-filter: blur(10px);
  border: 1px solid rgba(48, 54, 61, 0.5);
  border-radius: 16px;
  padding: 32px;
  overflow: hidden;
  transition: all 0.4s var(--animation-timing);
}

/* Glow effect on hover */
.feature-card-premium::before {
  content: "";
  position: absolute;
  inset: -2px;
  background: linear-gradient(
    135deg,
    var(--accent-blue),
    transparent 40%,
    transparent 60%,
    var(--accent-orange)
  );
  border-radius: 18px;
  opacity: 0;
  z-index: -1;
  transition: opacity 0.4s var(--animation-timing);
}

.feature-card-premium:hover::before {
  opacity: 1;
}

.feature-card-premium:hover {
  transform: translateY(-12px) scale(1.02);
  box-shadow:
    0 20px 40px rgba(0, 0, 0, 0.4),
    0 0 60px rgba(88, 166, 255, 0.1);
  border-color: transparent;
}

/* Animated icon container */
.icon-container {
  width: 64px;
  height: 64px;
  background: linear-gradient(135deg, var(--accent-blue), var(--accent-orange));
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  transition: all 0.4s var(--animation-timing-spring);
  position: relative;
}

.icon-container::after {
  content: "";
  position: absolute;
  inset: -4px;
  background: inherit;
  border-radius: 20px;
  filter: blur(12px);
  opacity: 0;
  z-index: -1;
  transition: opacity 0.4s;
}

.feature-card-premium:hover .icon-container {
  transform: scale(1.1) rotate(5deg);
}

.feature-card-premium:hover .icon-container::after {
  opacity: 0.5;
}

.icon-container i {
  color: white;
  font-size: 1.75rem;
}

/* =============================================================== */
/* --- SCROLL PROGRESS BAR --- */
/* =============================================================== */

.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 4px;
  background: linear-gradient(
    90deg,
    var(--accent-blue),
    var(--accent-orange),
    var(--accent-green)
  );
  background-size: 200% 100%;
  width: 0%;
  z-index: 10000;
  animation: progress-gradient 3s linear infinite;
  box-shadow: 0 0 10px var(--accent-blue);
}

@keyframes progress-gradient {
  0% {
    background-position: 0% 50%;
  }
  100% {
    background-position: 200% 50%;
  }
}

/* =============================================================== */
/* --- TESTIMONIALS - ENHANCED --- */
/* =============================================================== */

.testimonial-card-premium {
  position: relative;
  background: linear-gradient(
    145deg,
    rgba(22, 27, 34, 0.95),
    rgba(16, 22, 36, 0.98)
  );
  border: 1px solid rgba(48, 54, 61, 0.6);
  border-radius: 20px;
  padding: 36px;
  transition: all 0.5s var(--animation-timing);
  overflow: hidden;
}

.testimonial-card-premium::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--accent-blue), var(--accent-orange));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.5s var(--animation-timing);
}

.testimonial-card-premium:hover::before {
  transform: scaleX(1);
}

.testimonial-card-premium:hover {
  transform: translateY(-8px);
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5);
  border-color: rgba(88, 166, 255, 0.3);
}

/* Quote mark animated */
.quote-mark {
  font-size: 4rem;
  font-family: Georgia, serif;
  line-height: 1;
  background: linear-gradient(135deg, var(--accent-blue), var(--accent-orange));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  opacity: 0.5;
  transition: all 0.4s;
}

.testimonial-card-premium:hover .quote-mark {
  opacity: 1;
  transform: scale(1.1);
}

/* Pause on hover */
.testimonial-carousel-wrapper:hover .testimonial-carousel {
  animation-play-state: paused;
}

/* =============================================================== */
/* --- CTA SECTION --- */
/* =============================================================== */

.cta-premium {
  position: relative;
  background: linear-gradient(
    135deg,
    rgba(88, 166, 255, 0.1),
    rgba(240, 136, 51, 0.1)
  );
  border: 1px solid rgba(88, 166, 255, 0.2);
  border-radius: 24px;
  padding: 64px;
  overflow: hidden;
}

.cta-premium::before {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: conic-gradient(
    from 0deg,
    transparent,
    rgba(88, 166, 255, 0.1),
    transparent,
    rgba(240, 136, 51, 0.1),
    transparent
  );
  animation: rotate-bg 10s linear infinite;
}

@keyframes rotate-bg {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

.cta-premium-content {
  position: relative;
  z-index: 1;
}

/* =============================================================== */
/* --- BUTTON PREMIUM --- */
/* =============================================================== */

.btn-glow {
  position: relative;
  overflow: hidden;
  transition: all 0.3s var(--animation-timing);
}

.btn-glow::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition:
    width 0.6s,
    height 0.6s;
}

.btn-glow:hover::before {
  width: 300%;
  height: 300%;
}

.btn-glow::after {
  content: "";
  position: absolute;
  inset: -3px;
  background: linear-gradient(135deg, var(--accent-blue), var(--accent-orange));
  border-radius: inherit;
  z-index: -1;
  opacity: 0;
  filter: blur(12px);
  transition: opacity 0.3s;
}

.btn-glow:hover::after {
  opacity: 0.6;
}

.btn-glow:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(88, 166, 255, 0.3);
}

/* Shine sweep effect */
.btn-shine {
  position: relative;
  overflow: hidden;
}

.btn-shine::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.4),
    transparent
  );
  transition: none;
}

.btn-shine:hover::before {
  animation: shine-sweep 0.6s ease;
}

@keyframes shine-sweep {
  0% {
    left: -100%;
  }
  100% {
    left: 100%;
  }
}

/* =============================================================== */
/* --- PARALLAX ELEMENTS --- */
/* =============================================================== */

.parallax-layer {
  transition: transform 0.1s linear;
  will-change: transform;
}

.parallax-slow {
  --parallax-speed: 0.3;
}

.parallax-medium {
  --parallax-speed: 0.5;
}

.parallax-fast {
  --parallax-speed: 0.8;
}

/* =============================================================== */
/* --- COUNTER ANIMATION --- */
/* =============================================================== */

.counter-number {
  font-variant-numeric: tabular-nums;
  transition: color 0.3s;
}

.counter-number.counting {
  color: var(--accent-blue);
}

/* =============================================================== */
/* --- SECTION DIVIDERS --- */
/* =============================================================== */

.section-divider {
  position: relative;
  height: 100px;
  overflow: hidden;
}

.section-divider svg {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 100px;
}

.wave-animated path {
  animation: wave-move 8s ease-in-out infinite;
}

@keyframes wave-move {
  0%,
  100% {
    d: path("M0,50 Q250,100 500,50 T1000,50 L1000,100 L0,100 Z");
  }
  50% {
    d: path("M0,50 Q250,0 500,50 T1000,50 L1000,100 L0,100 Z");
  }
}

/* =============================================================== */
/* --- FLOATING SHAPES --- */
/* =============================================================== */

.floating-shapes {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}

.shape {
  position: absolute;
  opacity: 0.1;
  animation: float-shape 20s ease-in-out infinite;
}

.shape-circle {
  width: 100px;
  height: 100px;
  border: 2px solid var(--accent-blue);
  border-radius: 50%;
}

.shape-square {
  width: 60px;
  height: 60px;
  border: 2px solid var(--accent-orange);
  transform: rotate(45deg);
}

.shape-triangle {
  width: 0;
  height: 0;
  border-left: 40px solid transparent;
  border-right: 40px solid transparent;
  border-bottom: 70px solid rgba(46, 160, 67, 0.3);
}

.shape-1 {
  top: 10%;
  left: 5%;
  animation-delay: 0s;
}
.shape-2 {
  top: 70%;
  left: 85%;
  animation-delay: -5s;
}
.shape-3 {
  top: 40%;
  left: 15%;
  animation-delay: -10s;
}
.shape-4 {
  top: 80%;
  left: 30%;
  animation-delay: -15s;
}
.shape-5 {
  top: 20%;
  left: 70%;
  animation-delay: -8s;
}

@keyframes float-shape {
  0%,
  100% {
    transform: translateY(0) rotate(0deg);
  }
  25% {
    transform: translateY(-20px) rotate(5deg);
  }
  50% {
    transform: translateY(10px) rotate(-5deg);
  }
  75% {
    transform: translateY(-15px) rotate(3deg);
  }
}

/* =============================================================== */
/* --- ACCESSIBILITY --- */
/* =============================================================== */

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

/* =============================================================== */
/* --- MOBILE OPTIMIZATIONS --- */
/* =============================================================== */

@media (max-width: 768px) {
  .orb {
    width: 150px !important;
    height: 150px !important;
    filter: blur(40px);
  }

  .floating-shapes {
    display: none;
  }

  [data-animate] {
    transform: translateY(30px) !important;
  }

  [data-animate="fade-left"],
  [data-animate="fade-right"] {
    transform: translateY(30px) !important;
  }

  .feature-card-premium:hover {
    transform: translateY(-6px) scale(1.01);
  }

  .scroll-progress {
    height: 3px;
  }
}

/* =============================================================== */
/* --- LEGACY SUPPORT (backward compatibility) --- */
/* =============================================================== */

/* Original fade-in classes*/
.fade-in,
.animate-on-load,
.fade-in-section {
  opacity: 0;
  transform: translateY(20px);
  transition:
    opacity 0.6s ease-out,
    transform 0.6s ease-out;
}

.fade-in.visible,
.animate-on-load.visible,
.fade-in-section.visible {
  opacity: 1;
  transform: translateY(0);
}

.fade-in:nth-child(1),
.animate-on-load:nth-child(1) {
  transition-delay: 0.1s;
}
.fade-in:nth-child(2),
.animate-on-load:nth-child(2) {
  transition-delay: 0.2s;
}
.fade-in:nth-child(3),
.animate-on-load:nth-child(3) {
  transition-delay: 0.3s;
}
.fade-in:nth-child(4),
.animate-on-load:nth-child(4) {
  transition-delay: 0.4s;
}
.fade-in:nth-child(5),
.animate-on-load:nth-child(5) {
  transition-delay: 0.5s;
}

.hero-sequential .animate-on-load:nth-child(1) {
  transition-delay: 0.2s;
}
.hero-sequential .animate-on-load:nth-child(2) {
  transition-delay: 0.4s;
}
.hero-sequential .animate-on-load:nth-child(3) {
  transition-delay: 0.6s;
}

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

.hero-glow::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 800px;
  height: 800px;
  transform: translate(-50%, -50%);
  background: radial-gradient(
    ellipse at center,
    rgba(88, 166, 255, 0.15) 0%,
    rgba(240, 136, 51, 0.08) 40%,
    transparent 70%
  );
  animation: hero-pulse 6s ease-in-out infinite;
}

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

/* Floating particles */
.floating-particles {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.particle {
  position: absolute;
  border-radius: 50%;
  opacity: 0.4;
  animation: float-particle 20s infinite ease-in-out;
}

.particle-1 {
  width: 6px;
  height: 6px;
  background: var(--accent-blue);
  top: 20%;
  left: 10%;
}
.particle-2 {
  width: 4px;
  height: 4px;
  background: var(--accent-orange);
  top: 60%;
  left: 85%;
  animation-delay: -5s;
}
.particle-3 {
  width: 8px;
  height: 8px;
  background: var(--accent-blue);
  top: 80%;
  left: 20%;
  animation-delay: -10s;
}
.particle-4 {
  width: 5px;
  height: 5px;
  background: var(--accent-orange);
  top: 30%;
  left: 75%;
  animation-delay: -15s;
}
.particle-5 {
  width: 3px;
  height: 3px;
  background: var(--accent-gold);
  top: 70%;
  left: 50%;
  animation-delay: -8s;
}

@keyframes float-particle {
  0%,
  100% {
    transform: translateY(0px) translateX(0px);
    opacity: 0.3;
  }
  25% {
    transform: translateY(-30px) translateX(15px);
    opacity: 0.6;
  }
  50% {
    transform: translateY(-10px) translateX(-10px);
    opacity: 0.4;
  }
  75% {
    transform: translateY(-40px) translateX(5px);
    opacity: 0.5;
  }
}

/* Section pattern */
.section-pattern {
  position: relative;
}

.section-pattern::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(
    circle at 1px 1px,
    rgba(88, 166, 255, 0.08) 1px,
    transparent 0
  );
  background-size: 40px 40px;
  pointer-events: none;
}

/* Feature card original with improvements */
.feature-card {
  position: relative;
  background-color: var(--background-light);
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease,
    border-color 0.3s ease;
  overflow: hidden;
}

.feature-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(135deg, var(--accent-blue), var(--accent-orange));
  -webkit-mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.3s ease;
}

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

.feature-card:hover {
  /* Simplified: No movement */
  border-color: var(--accent-blue);
}

.feature-card i {
  /* Simplified: No transition */
  color: var(--accent-blue);
}

.feature-card:hover i {
  /* Simplified: No scale or color change */
  transform: none;
  color: var(--accent-blue);
}

/* Button effects */
.btn-primary,
.btn-secondary {
  position: relative;
  overflow: hidden;
}

.btn-primary::after,
.btn-secondary::after {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.25),
    transparent
  );
}

.btn-primary:hover::after,
.btn-secondary:hover::after {
  animation: btn-shine 0.6s ease forwards;
}

@keyframes btn-shine {
  0% {
    left: -100%;
  }
  100% {
    left: 100%;
  }
}

.btn-cta {
  animation: cta-glow 2s ease-in-out infinite;
}

@keyframes cta-glow {
  0%,
  100% {
    box-shadow: 0 0 20px 0 rgba(240, 136, 51, 0.3);
  }
  50% {
    box-shadow: 0 0 30px 5px rgba(240, 136, 51, 0.5);
  }
}

/* Testimonial pause */
.testimonial-carousel-wrapper:hover .testimonial-carousel {
  animation-play-state: paused;
}

.testimonial-card {
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
}

.testimonial-card:hover {
  transform: translateY(-5px) scale(1.02);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
}

.testimonial-card i.fa-quote-left {
  transition:
    transform 0.3s ease,
    color 0.3s ease;
}

.testimonial-card:hover i.fa-quote-left {
  transform: scale(1.2);
  color: var(--accent-blue);
}

/* =============================================================== */
/* --- HERO AURORA EFFECT (Alternative) --- */
/* =============================================================== */

.hero-aurora {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.hero-aurora::before,
.hero-aurora::after {
  content: "";
  position: absolute;
  width: 200%;
  height: 200%;
  top: -50%;
  left: -50%;
  animation: aurora-rotate 30s linear infinite;
}

.hero-aurora::before {
  background: conic-gradient(
    from 0deg at 50% 50%,
    transparent 0deg,
    rgba(88, 166, 255, 0.15) 60deg,
    transparent 120deg,
    rgba(240, 136, 51, 0.1) 180deg,
    transparent 240deg,
    rgba(46, 160, 67, 0.1) 300deg,
    transparent 360deg
  );
  filter: blur(80px);
}

.hero-aurora::after {
  background: conic-gradient(
    from 180deg at 50% 50%,
    transparent 0deg,
    rgba(240, 136, 51, 0.12) 90deg,
    transparent 180deg,
    rgba(88, 166, 255, 0.12) 270deg,
    transparent 360deg
  );
  filter: blur(60px);
  animation-direction: reverse;
  animation-duration: 25s;
}

@keyframes aurora-rotate {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

/* Grid pattern overlay */
.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(88, 166, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(88, 166, 255, 0.03) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
  mask-image: radial-gradient(ellipse at center, black 30%, transparent 70%);
  -webkit-mask-image: radial-gradient(
    ellipse at center,
    black 30%,
    transparent 70%
  );
}

/* =============================================================== */
/* --- PORTAL PREMIUM CARD --- */
/* =============================================================== */

.portal-premium-card {
  position: relative;
  background: linear-gradient(
    135deg,
    rgba(22, 27, 34, 0.95),
    rgba(13, 17, 23, 0.98)
  );
  border-radius: 24px;
  padding: 48px;
  overflow: hidden;
  border: 1px solid rgba(88, 166, 255, 0.2);
  box-shadow:
    0 25px 50px rgba(0, 0, 0, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

/* Animated border gradient */
.portal-premium-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 2px;
  background: linear-gradient(
    135deg,
    var(--accent-blue),
    var(--accent-orange),
    var(--accent-green),
    var(--accent-blue)
  );
  background-size: 400% 400%;
  animation: gradient-border 8s ease infinite;
  -webkit-mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0.8;
}

@keyframes gradient-border {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

/* Shine sweep on card */
.portal-premium-card::after {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(
    45deg,
    transparent 40%,
    rgba(255, 255, 255, 0.03) 50%,
    transparent 60%
  );
  animation: card-shine 6s ease-in-out infinite;
  pointer-events: none;
}

@keyframes card-shine {
  0%,
  100% {
    transform: translateX(-100%) translateY(-100%);
  }
  50% {
    transform: translateX(100%) translateY(100%);
  }
}

/* =============================================================== */
/* --- HEXAGONAL ICON DESIGN --- */
/* =============================================================== */

.icon-hex {
  position: relative;
  width: 70px;
  height: 80px;
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.icon-hex::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--accent-blue), var(--accent-orange));
  clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
  transition:
    transform 0.4s var(--animation-timing-spring),
    filter 0.4s;
}

.icon-hex::after {
  content: "";
  position: absolute;
  inset: 4px;
  background: var(--background-dark);
  clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
  transition: background 0.4s;
}

.icon-hex i {
  position: relative;
  z-index: 1;
  font-size: 1.75rem;
  background: linear-gradient(135deg, var(--accent-blue), var(--accent-orange));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  transition: transform 0.4s var(--animation-timing-spring);
}

.feature-card:hover .icon-hex::before {
  transform: rotate(30deg) scale(1.1);
  filter: drop-shadow(0 0 20px rgba(88, 166, 255, 0.5));
}

.feature-card:hover .icon-hex i {
  transform: scale(1.2);
}

/* =============================================================== */
/* --- MORPHING CTA BUTTON --- */
/* =============================================================== */

.btn-morph {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 18px 36px;
  font-size: 1.1rem;
  font-weight: 600;
  color: white;
  text-decoration: none;
  background: linear-gradient(135deg, var(--accent-orange), #ff6b35);
  border: none;
  border-radius: 50px;
  cursor: pointer;
  overflow: hidden;
  transition: all 0.4s var(--animation-timing);
  box-shadow: 0 10px 30px rgba(240, 136, 51, 0.3);
}

.btn-morph::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, #ff6b35, var(--accent-orange));
  opacity: 0;
  transition: opacity 0.4s;
}

.btn-morph:hover::before {
  opacity: 1;
}

.btn-morph::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition:
    width 0.6s,
    height 0.6s;
}

.btn-morph:hover::after {
  width: 400px;
  height: 400px;
}

.btn-morph span {
  position: relative;
  z-index: 1;
}

.btn-morph .btn-arrow {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  transition:
    transform 0.3s,
    background 0.3s;
}

.btn-morph:hover .btn-arrow {
  transform: translateX(5px);
  background: rgba(255, 255, 255, 0.3);
}

.btn-morph:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 40px rgba(240, 136, 51, 0.4);
}

/* =============================================================== */
/* --- FLOATING ICON BADGES --- */
/* =============================================================== */

.icon-float-badge {
  position: relative;
  width: 80px;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
}

.icon-float-badge::before {
  content: "";
  position: absolute;
  width: 100%;
  height: 100%;
  background: rgba(88, 166, 255, 0.1);
  border-radius: 50%;
  animation: badge-pulse 2s ease-in-out infinite;
}

.icon-float-badge::after {
  content: "";
  position: absolute;
  width: 70%;
  height: 70%;
  background: linear-gradient(135deg, var(--accent-blue), var(--accent-orange));
  border-radius: 50%;
  box-shadow: 0 10px 30px rgba(88, 166, 255, 0.3);
}

.icon-float-badge i {
  position: relative;
  z-index: 1;
  font-size: 1.5rem;
  color: white;
}

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

.feature-card:hover .icon-float-badge::after {
  animation: badge-rotate 0.6s ease forwards;
}

@keyframes badge-rotate {
  0% {
    transform: rotate(0deg) scale(1);
  }
  50% {
    transform: rotate(180deg) scale(1.1);
  }
  100% {
    transform: rotate(360deg) scale(1);
  }
}

/* =============================================================== */
/* --- OUTLINED ICON STYLE --- */
/* =============================================================== */

.icon-outlined {
  width: 64px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  position: relative;
  border: 2px solid transparent;
  border-radius: 16px;
  background:
    linear-gradient(var(--background-dark), var(--background-dark)) padding-box,
    linear-gradient(135deg, var(--accent-blue), var(--accent-orange)) border-box;
  transition: all 0.4s var(--animation-timing);
}

.icon-outlined i {
  font-size: 1.75rem;
  background: linear-gradient(135deg, var(--accent-blue), var(--accent-orange));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  transition: transform 0.4s var(--animation-timing-spring);
}

.feature-card:hover .icon-outlined {
  background:
    linear-gradient(135deg, var(--accent-blue), var(--accent-orange))
      padding-box,
    linear-gradient(135deg, var(--accent-blue), var(--accent-orange)) border-box;
  box-shadow: 0 10px 30px rgba(88, 166, 255, 0.3);
}

.feature-card:hover .icon-outlined i {
  -webkit-text-fill-color: white;
  transform: scale(1.1);
}

/* =============================================================== */
/* --- SIMPLE ICON STYLE (No Background) --- */
/* =============================================================== */

.icon-simple {
  display: block;
  font-size: 2.5rem;
  margin-bottom: 20px;
  background: linear-gradient(135deg, var(--accent-blue), var(--accent-orange));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  transition:
    transform 0.4s var(--animation-timing-spring),
    filter 0.4s;
}

.feature-card:hover .icon-simple {
  transform: scale(1.12);
  filter: drop-shadow(0 5px 15px rgba(88, 166, 255, 0.4));
}

/* =============================================================== */
/* --- HERO DUAL CTA CARDS - BOLD MINIMALIST --- */
/* =============================================================== */

.hero-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 48px;
  margin-top: 56px;
  max-width: 980px;
  margin-left: auto;
  margin-right: auto;
  perspective: 1500px;
}

/* Card Base - Bold Minimalist */
.hero-card {
  position: relative;
  background: linear-gradient(145deg, #1a1f28, #0f1419);
  border-radius: 16px;
  padding: 56px 44px;
  text-align: center;
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: all 0.6s cubic-bezier(0.23, 1, 0.32, 1);
  overflow: visible;
  box-shadow:
    0 10px 40px rgba(0, 0, 0, 0.6),
    0 0 0 1px rgba(255, 255, 255, 0.02);
  display: flex;
  flex-direction: column;
  align-items: center;
  transform-style: preserve-3d;
}

/* Geometric Accent Bar */
.hero-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 5px;
  border-radius: 16px 16px 0 0;
  background: linear-gradient(90deg, var(--accent-orange), #ff6b35);
  opacity: 0.9;
  transition: all 0.6s;
}

/* CÃ¢maras Accent */
.hero-card-camara::before {
  background: linear-gradient(90deg, var(--accent-orange), #ff9d5c);
}

/* CidadÃ£os Accent */
.hero-card-cidadao::before {
  background: linear-gradient(90deg, var(--accent-blue), #5ca3ff);
}

/* 3D Tilt Hover */
.hero-card:hover {
  transform: translateY(-16px) rotateX(5deg) scale(1.03);
  border-color: rgba(255, 255, 255, 0.15);
  box-shadow:
    0 30px 80px rgba(0, 0, 0, 0.8),
    0 0 0 1px rgba(255, 255, 255, 0.1);
}

.hero-card:hover::before {
  height: 8px;
  opacity: 1;
  box-shadow: 0 0 20px currentColor;
}

/* Icon - Minimal Floating Design */
.hero-card-icon {
  position: relative;
  width: 100px;
  height: 100px;
  margin: 0 auto 32px auto;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  transition: all 0.6s cubic-bezier(0.23, 1, 0.32, 1);
}

/* Icon Circle */
.hero-card-icon::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: linear-gradient(
    135deg,
    rgba(240, 136, 51, 0.15),
    rgba(240, 136, 51, 0.05)
  );
  border: 2px solid var(--accent-orange);
  transition: all 0.6s cubic-bezier(0.23, 1, 0.32, 1);
}

/* Icon Outer Ring */
.hero-card-icon::after {
  content: "";
  position: absolute;
  inset: -8px;
  border-radius: 50%;
  border: 1px solid rgba(240, 136, 51, 0.2);
  transition: all 0.6s cubic-bezier(0.23, 1, 0.32, 1);
  animation: icon-ring-pulse 4s ease-in-out infinite;
}

.hero-card-icon i {
  position: relative;
  z-index: 2;
  font-size: 2.5rem;
  color: var(--accent-orange);
  transition: all 0.6s cubic-bezier(0.23, 1, 0.32, 1);
  filter: drop-shadow(0 0 10px rgba(240, 136, 51, 0.4));
}

/* Blue Icon Variant */
.hero-card-icon-blue::before {
  background: linear-gradient(
    135deg,
    rgba(88, 166, 255, 0.15),
    rgba(88, 166, 255, 0.05)
  );
  border-color: var(--accent-blue);
}

.hero-card-icon-blue::after {
  border-color: rgba(88, 166, 255, 0.2);
}

.hero-card-icon-blue i {
  color: var(--accent-blue);
  filter: drop-shadow(0 0 10px rgba(88, 166, 255, 0.4));
}

/* Icon Hover */
.hero-card:hover .hero-card-icon {
  transform: translateY(-12px) scale(1.1);
}

.hero-card:hover .hero-card-icon::before {
  transform: scale(1.15);
  box-shadow: 0 10px 40px rgba(240, 136, 51, 0.3);
}

.hero-card:hover .hero-card-icon::after {
  transform: scale(1.2);
  opacity: 0;
}

.hero-card:hover .hero-card-icon i {
  transform: rotate(-8deg) scale(1.05);
}

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

/* Card Content */
.hero-card h3 {
  font-size: 1.85rem;
  font-weight: 900;
  margin-bottom: 16px;
  color: #fff;
  letter-spacing: -0.03em;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.hero-card p {
  font-size: 1.05rem;
  color: rgba(255, 255, 255, 0.65);
  line-height: 1.75;
  margin-bottom: 36px;
  min-height: 52px;
  font-weight: 400;
  flex-grow: 1;
}

/* Button Variants - Bold Design */
.btn-morph-orange,
.btn-morph-blue {
  font-size: 1.05rem;
  padding: 18px 36px;
  font-weight: 700;
  border-radius: 12px;
  position: relative;
  overflow: hidden;
}

.btn-morph-orange {
  background: var(--accent-orange);
  box-shadow:
    0 8px 24px rgba(240, 136, 51, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.btn-morph-orange::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, transparent, rgba(255, 255, 255, 0.1));
  opacity: 0;
  transition: opacity 0.4s;
}

.btn-morph-orange:hover {
  transform: translateY(-4px);
  box-shadow:
    0 12px 32px rgba(240, 136, 51, 0.5),
    inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.btn-morph-orange:hover::before {
  opacity: 1;
}

.btn-morph-blue {
  background: var(--accent-blue);
  box-shadow:
    0 8px 24px rgba(88, 166, 255, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.btn-morph-blue::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, transparent, rgba(255, 255, 255, 0.1));
  opacity: 0;
  transition: opacity 0.4s;
}

.btn-morph-blue:hover {
  transform: translateY(-4px);
  box-shadow:
    0 12px 32px rgba(88, 166, 255, 0.5),
    inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.btn-morph-blue:hover::before {
  opacity: 1;
}

/* Responsive Hero Cards */
@media (max-width: 768px) {
  .hero-cards {
    grid-template-columns: 1fr;
    gap: 32px;
    margin-top: 40px;
    perspective: none;
  }

  .hero-card {
    padding: 44px 32px;
  }

  .hero-card:hover {
    transform: translateY(-12px) scale(1.02);
  }

  .hero-card-icon {
    width: 85px;
    height: 85px;
  }

  .hero-card-icon i {
    font-size: 2.15rem;
  }

  .hero-card h3 {
    font-size: 1.6rem;
  }

  .hero-card p {
    font-size: 1rem;
    min-height: auto;
  }
}

/* ================================================================
   TERMINAL HERO CARDS - Aplicados apenas aos terminais
   NÃO modifica título ou outros elementos da hero section
   ================================================================ */

/* Badge */
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 20px;
  background: rgba(22, 27, 34, 0.85);
  border: 1px solid var(--border-color);
  border-radius: 100px;
  margin-bottom: 32px;
}

.badge-dot {
  width: 8px;
  height: 8px;
  background: var(--accent-green);
  border-radius: 50%;
  animation: badgePulse 2s ease-in-out infinite;
}

@keyframes badgePulse {
  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(46, 160, 67, 0.4);
  }
  50% {
    box-shadow: 0 0 0 6px rgba(46, 160, 67, 0);
  }
}

.badge-text {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--secondary-text);
  letter-spacing: 0.5px;
  font-family: "JetBrains Mono", monospace;
}

/* Access Terminals Container */
.access-terminals {
  display: flex;
  align-items: stretch;
  justify-content: center;
  gap: 32px;
  width: 100%;
  max-width: 1000px;
  margin: 0 auto 20px auto;
}

/* Terminal Cards */
.terminal {
  position: relative;
  flex: 1;
  max-width: 460px;
  background: rgba(22, 27, 34, 0.85);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 0;
  overflow: hidden;
  backdrop-filter: blur(10px);
  display: flex;
  flex-direction: column;
  transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.terminal:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
}

.terminal-gov:hover {
  box-shadow:
    0 20px 60px rgba(240, 136, 51, 0.15),
    0 0 0 1px var(--accent-orange);
}

.terminal-citizen:hover {
  box-shadow:
    0 20px 60px rgba(88, 166, 255, 0.15),
    0 0 0 1px var(--accent-blue);
}

/* Terminal Corners */
.terminal-corner {
  position: absolute;
  width: 20px;
  height: 20px;
  border-color: var(--border-color);
  border-style: solid;
  border-width: 0;
  opacity: 0.5;
  transition: all 0.4s;
}

.tl {
  top: 8px;
  left: 8px;
  border-top-width: 2px;
  border-left-width: 2px;
}
.tr {
  top: 8px;
  right: 8px;
  border-top-width: 2px;
  border-right-width: 2px;
}
.bl {
  bottom: 8px;
  left: 8px;
  border-bottom-width: 2px;
  border-left-width: 2px;
}
.br {
  bottom: 8px;
  right: 8px;
  border-bottom-width: 2px;
  border-right-width: 2px;
}

.terminal-gov:hover .terminal-corner {
  border-color: var(--accent-orange);
  opacity: 1;
}
.terminal-citizen:hover .terminal-corner {
  border-color: var(--accent-blue);
  opacity: 1;
}

/* Terminal Header */
.terminal-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 24px;
  background: rgba(0, 0, 0, 0.2);
  border-bottom: 1px solid var(--border-color);
}

.terminal-chip {
  width: 32px;
  height: 22px;
  border-radius: 4px;
  background: linear-gradient(135deg, #1a1a2e, #16213e);
  position: relative;
  overflow: hidden;
}

.terminal-chip::after {
  content: "";
  position: absolute;
  top: 4px;
  left: 4px;
  right: 4px;
  height: 3px;
  border-radius: 1px;
}

.chip-orange::after {
  background: var(--accent-orange);
}
.chip-blue::after {
  background: var(--accent-blue);
}

.terminal-label {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 1.5px;
  color: var(--secondary-text);
  font-family: "JetBrains Mono", monospace;
}

/* Terminal Body */
.terminal-body {
  padding: 28px 32px 20px;
  text-align: center;
  flex-grow: 1;
}

.terminal-icon {
  width: 72px;
  height: 72px;
  margin: 0 auto 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 16px;
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.terminal-gov .terminal-icon {
  background: linear-gradient(135deg, rgba(240, 136, 51, 0.15), transparent);
  border: 1px solid rgba(240, 136, 51, 0.3);
}

.terminal-citizen .terminal-icon {
  background: linear-gradient(135deg, rgba(88, 166, 255, 0.15), transparent);
  border: 1px solid rgba(88, 166, 255, 0.3);
}

.terminal-icon i {
  font-size: 1.75rem;
  transition: transform 0.4s;
}

.terminal-gov .terminal-icon i {
  color: var(--accent-orange);
}
.terminal-citizen .terminal-icon i {
  color: var(--accent-blue);
}

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

.terminal:hover .terminal-icon i {
  transform: rotate(-5deg) scale(1.1);
}

.terminal-title {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--primary-text);
}

.terminal-desc {
  font-size: 0.95rem;
  color: var(--secondary-text);
  line-height: 1.65;
  min-height: 60px;
}

/* Terminal Footer */
.terminal-footer {
  padding: 20px 32px 28px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: auto;
}

.terminal-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 16px 24px;
  border-radius: 12px;
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  color: #fff;
  position: relative;
  overflow: hidden;
  transition: all 0.4s;
}

.btn-orange {
  background: linear-gradient(135deg, var(--accent-orange), #e07020);
  box-shadow: 0 4px 20px rgba(240, 136, 51, 0.3);
}

.btn-blue {
  background: linear-gradient(135deg, var(--accent-blue), #4090e0);
  box-shadow: 0 4px 20px rgba(88, 166, 255, 0.3);
}

.terminal-btn::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.2), transparent);
  opacity: 0;
  transition: opacity 0.3s;
}

.terminal-btn:hover::before {
  opacity: 1;
}
.terminal-btn:hover {
  transform: translateY(-3px);
}
.btn-orange:hover {
  box-shadow: 0 8px 30px rgba(240, 136, 51, 0.4);
}
.btn-blue:hover {
  box-shadow: 0 8px 30px rgba(88, 166, 255, 0.4);
}

.btn-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 6px;
  transition: transform 0.3s;
}

.terminal-btn:hover .btn-icon {
  transform: translateX(4px);
}

.terminal-meta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 0.8rem;
  color: var(--secondary-text);
}

.terminal-meta i {
  font-size: 0.75rem;
}
.terminal-gov .terminal-meta i {
  color: var(--accent-orange);
}
.terminal-citizen .terminal-meta i {
  color: var(--accent-blue);
}

/* Nexus Connector */
.nexus-connector {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 20px 0;
}

.nexus-line {
  width: 2px;
  height: 40px;
  background: linear-gradient(
    to bottom,
    transparent,
    var(--border-color),
    transparent
  );
}

.nexus-core {
  position: relative;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.nexus-ring {
  position: absolute;
  border-radius: 50%;
  border: 1px solid var(--border-color);
  animation: ringPulse 3s ease-in-out infinite;
}

.ring-1 {
  width: 100%;
  height: 100%;
}
.ring-2 {
  width: 70%;
  height: 70%;
  animation-delay: 0.5s;
}

@keyframes ringPulse {
  0%,
  100% {
    transform: scale(1);
    opacity: 0.5;
  }
  50% {
    transform: scale(1.2);
    opacity: 0.2;
  }
}

.nexus-dot {
  width: 12px;
  height: 12px;
  background: linear-gradient(135deg, var(--accent-blue), var(--accent-orange));
  border-radius: 50%;
  box-shadow: 0 0 20px rgba(88, 166, 255, 0.5);
}

/* Scroll Indicator */
/* Scroll Indicator - DEPRECATED (See hero-fix.css) */

.scroll-text {
  font-size: 0.75rem;
  color: var(--secondary-text);
  text-transform: uppercase;
  letter-spacing: 2px;
}

.scroll-arrow {
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  font-size: 0.8rem;
  color: var(--secondary-text);
  animation: bounceArrow 2s ease-in-out infinite;
}

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

/* Responsive */
@media (max-width: 900px) {
  .access-terminals {
    flex-direction: column;
    gap: 24px;
  }
  .terminal {
    max-width: 100%;
    width: 100%;
  }
  .nexus-connector {
    flex-direction: row;
  }
  .nexus-line {
    width: 60px;
    height: 2px;
    background: linear-gradient(
      to right,
      transparent,
      var(--border-color),
      transparent
    );
  }
}

@media (max-width: 600px) {
  .terminal {
    border-radius: 12px;
  }
  .terminal-body {
    padding: 24px 20px 20px;
  }
  .terminal-footer {
    padding: 16px 20px 24px;
  }
  .nexus-connector {
    display: none;
  }
}

/* === HERO STATS BAR === */
.hero-stats {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 32px;
  padding: 24px 40px;
  background: rgba(22, 27, 34, 0.85);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.stat-value {
  font-size: 1.75rem;
  font-weight: 800;
  background: linear-gradient(135deg, var(--primary-text), var(--accent-blue));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  font-family: "JetBrains Mono", monospace;
}

.stat-label {
  font-size: 0.8rem;
  color: var(--secondary-text);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.stat-divider {
  width: 1px;
  height: 40px;
  background: var(--border-color);
}

@media (max-width: 900px) {
  .hero-stats {
    flex-wrap: wrap;
    gap: 24px;
  }
  .stat-divider {
    display: none;
  }
}

@media (max-width: 600px) {
  .hero-stats {
    flex-direction: column;
    gap: 20px;
    padding: 24px;
  }
  .stat-item {
    width: 100%;
    flex-direction: row;
    justify-content: space-between;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border-color);
  }
  .stat-item:last-child {
    padding-bottom: 0;
    border-bottom: none;
  }
}

/* =============================================================== */
/* =============================================================== */

.hero-digital-grid {
  position: absolute;
  inset: 0;
  overflow: hidden;
  background: radial-gradient(circle at center top, #161b22 0%, #0d1117 80%);
  z-index: 0 !important;
  perspective: 1000px;
}

/* Floor Grid */
.grid-plane {
  position: absolute;
  width: 300%;
  height: 200%;
  left: -100%;
  top: -20%;
  background-image:
    linear-gradient(to right, rgba(88, 166, 255, 0.05) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(88, 166, 255, 0.05) 1px, transparent 1px);
  background-size: 60px 60px;
  transform: rotateX(75deg);
  transform-origin: center top;
  mask-image: linear-gradient(
    to bottom,
    transparent 0%,
    black 20%,
    black 60%,
    transparent 100%
  );
  -webkit-mask-image: linear-gradient(
    to bottom,
    transparent 0%,
    black 20%,
    black 60%,
    transparent 100%
  );
  animation: grid-move 20s linear infinite;
}

@keyframes grid-move {
  0% {
    background-position: 0 0;
  }
  100% {
    background-position: 0 60px;
  }
}

/* Horizon Glow */
.hero-horizon-glow {
  position: absolute;
  top: 15%;
  left: 50%;
  transform: translateX(-50%);
  width: 80%;
  height: 300px;
  background: radial-gradient(
    ellipse at center,
    rgba(88, 166, 255, 0.15) 0%,
    transparent 70%
  );
  filter: blur(40px);
  pointer-events: none;
}

/* Floating Data Particles */
.data-particle {
  position: absolute;
  width: 2px;
  height: 2px;
  background: var(--accent-green);
  border-radius: 50%;
  opacity: 0;
  animation: particle-float 4s infinite;
}

@keyframes particle-float {
  0% {
    transform: translateY(100vh) scale(0);
    opacity: 0;
  }
  20% {
    opacity: 0.8;
  }
  80% {
    opacity: 0.8;
  }
  100% {
    transform: translateY(-20vh) scale(1.5);
    opacity: 0;
  }
}
