html {
  scroll-behavior: smooth;
}

/* =========================================
   Page Loader
   ========================================= */
.page-loader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #000202;
  transition:
    opacity 0.5s ease,
    visibility 0.5s ease;
}

.page-loader.loaded {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.loader-glow {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: conic-gradient(#25c3fe, #5450b1, #25c3fe);
  animation: loaderSpin 1.2s linear infinite;
  filter: blur(12px);
  opacity: 0.8;
}

@keyframes loaderSpin {
  to {
    transform: rotate(360deg);
  }
}

/* =========================================
   1. Variables & Settings
   ========================================= */
:root {
  --black: #000202;
  --gray: #e8e8e8;
  --white: #ffffff;
  --blue: #25c3fe;
  --purple: #5450b1;
  --btn-radius: 1.5rem;
  --transition-speed: 0.3s;
}

/* =========================================
   2. Resets & Utilities
   ========================================= */

::selection {
  background-color: var(--blue);
  color: var(--black);
}

::-webkit-scrollbar {
  width: 5px;
}

::-webkit-scrollbar-track {
  background-color: var(--black);
}

::-webkit-scrollbar-thumb {
  background-color: var(--purple);
  border-radius: 5px;
}

/* Basic Responsive Optimization */
img {
  max-width: 100%;
  height: auto;
  display: block;
}

.img-fluid {
  width: 100%;
}

.noPadding {
  padding: 0 !important; /* Kept for utility strictness, but used sparingly */
}

/* Bootstrap Row Overrides - Scoped to avoid global conflicts if possible */

.row {
  padding: 0 !important;
  margin: 0 !important;
}

.row.no-gutters {
  margin-right: 0;
  margin-left: 0;
}

.row.no-gutters > [class^="col-"],
.row.no-gutters > [class*="col-"] {
  padding-right: 0;
  padding-left: 0;
}

section.noPadding {
  padding: 0;
}

/* =========================================
   3. Typography
   ========================================= */
body,
input,
textarea,
select {
  font-weight: 400;
  font-style: normal;
  /* font-display is for @font-face, removing invalid property here */
}

h1,
h2,
h3,
h4,
h5,
h6 {
  margin-bottom: 0.1em;
}

/* Fluid Typography using Clamp */
h1 {
  font-size: clamp(1.3rem, 1.16rem + 0.7vw, 2rem);
}

.display {
  font-size: clamp(2rem, 1.5rem + 2.5vw, 4.5rem);
  font-weight: 400;
}

.display span {
  font-weight: 600;
  font-style: italic;
  color: var(--blue);
}

h2 {
  font-size: clamp(1.8rem, 1.46rem + 1.7vw, 3.5rem);
  font-weight: 400;
}

h3 {
  font-size: clamp(1.5rem, 1.3rem + 1vw, 2.5rem);
  font-weight: 400;
}

h3 b {
  font-weight: 500;
}

h4 {
  font-size: clamp(1.2rem, 1.14rem + 0.3vw, 1.5rem);
  font-weight: 400;
}

p,
li {
  font-size: clamp(1rem, 0.75rem + 0.8vw, 1.2rem);
  font-weight: 300;
}
label {
  font-size: clamp(0.9rem, 0.775rem + 0.4vw, 1rem);
  font-weight: 500;
}

.smallTxt {
  font-size: 0.75rem;
  text-align: center;
}

/* =========================================
   4. Links & Buttons
   ========================================= */
a {
  color: var(--primary-color);
  text-decoration: underline;
  transition: color var(--transition-speed);
}

a:hover,
a:active,
a:focus {
  color: var(--primary-hover);
}

.btn {
  font-style: normal;
  border: 0px solid transparent;
  font-weight: 400;
  padding: 0.5em 1em;
  background: #5450b1;
  background: linear-gradient(
    90deg,
    rgba(84, 80, 177, 1) 35%,
    rgba(37, 195, 254, 1) 100%
  );
  border-radius: var(--btn-radius);
  color: var(--white);
  max-width: 200px;
  width: 100%;
  display: inline-block;
  text-align: center;
  text-decoration: none;
}

.btn:hover {
  background: var(--black);
  border-color: var(--white);
  transition: all 0.2s ease;
  box-shadow: 0 0 10px var(--white);
}

/* Landing page */

/* BODY */
body {
  background-color: var(--black);
  color: var(--white);
  font-family: "IBM Plex Sans", sans-serif;
  font-optical-sizing: auto;
  font-weight: 400;
  font-style: normal;
  font-variation-settings: "wdth" 100;
}

/* NAVBAR */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  transition:
    background 0.3s ease,
    box-shadow 0.3s ease;
}

header.sticky {
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
}

.logo {
  max-width: 120px;
  width: 100%;
  display: inline-block;
}

.navbar .nav-item {
  padding: 0 1rem;
}

.navbar .nav-link {
  color: var(--white);
  font-size: clamp(0.9rem, 0.775rem + 0.4vw, 1rem);
  position: relative;
}

.navbar .nav-link::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--white);
  transition: width 0.2s ease;
  z-index: 1;
}

.navbar .nav-link:hover::after {
  width: 100%;
}

.btn-lang {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.4);
  color: var(--white);
  font-size: 0.8rem;
  font-weight: 600;
  padding: 0.3rem 0.7rem;
  border-radius: 2rem;
  margin-left: 1rem;
  cursor: pointer;
  transition: background 0.3s ease, border-color 0.3s ease;
}

.btn-lang:hover {
  background: var(--blue);
  border-color: var(--blue);
}

.navbar-toggler {
  border-color: var(--white);
}

.navbar-toggler-icon {
  background-image: url("./img/menu.svg");
}

/* SECTIONS */
section {
  position: relative;
}

.bg-blur {
  position: relative;
  border-radius: 2rem;
}

.bg-blur::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  /* From https://css.glass */
  background: rgba(255, 255, 255, 0.06);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
  backdrop-filter: blur(6.5px);
  -webkit-backdrop-filter: blur(6.5px);
  /* border: 1px solid rgba(255, 255, 255, 0.37); */
  border-radius: 2rem;
  z-index: -1;
}

.useCases {
  list-style: none;
  padding: 0 0 0 2rem;
  margin: 0;
  margin-top: 2rem !important;
}

.useCases li {
  margin-bottom: 1rem;
  text-indent: -32px;
  font-size: 1.4rem;
}

.useCases span {
  display: inline-block;
  margin-right: 0.5rem;
  vertical-align: middle;
}

.useCases a {
  color: var(--white);
  text-decoration: none;
  position: relative;
  left: 0;
  transition:
    left 0.2s ease,
    color 0.2s ease;
}

.useCases a:hover {
  left: 5px;
  color: var(--blue);
}

.contentAnimations {
  width: 100%;
  height: 100%;
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 2rem;
}

.step-number {
  font-size: 1.1rem;
  padding: 0.5rem 1rem;
  margin-bottom: 1rem;
  display: inline-block;
  /* From https://css.glass */
  background: rgba(255, 255, 255, 0.11);
  border-radius: 2rem;
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  border: 1px solid rgba(255, 255, 255, 0.55);
}

/* FOOTER */
.line {
  height: 1px;
  opacity: 0.5;
  background: #5450b1;
  background: linear-gradient(
    90deg,
    rgba(84, 80, 177, 1) 35%,
    rgba(37, 195, 254, 1) 100%
  );
  margin: 0.5rem 0;
}

footer a {
  color: var(--white);
  text-decoration: none;
}

footer a:hover {
  color: var(--blue);
}

footer a .click-icon {
  display: inline-block;
  max-width: 40px;
  width: 100%;
  margin-right: 0.2rem;
}

/* =========================================
   5. Animated Gradient Background
   ========================================= */
:root {
  --gradient-bg1: rgb(0, 2, 2);
  --gradient-bg2: rgb(20, 0, 60);
  --gradient-color1: 37, 195, 254; /* azul */
  --gradient-color2: 84, 80, 177; /* morado */
  --gradient-color3: 100, 220, 255; /* cyan */
  --gradient-color4: 60, 0, 120; /* morado oscuro */
  --gradient-color5: 0, 80, 180; /* azul profundo */
  --gradient-interactive: 140, 100, 255;
  --gradient-circle-size: 55%;
  --gradient-blending: hard-light;
}

@keyframes moveInCircle {
  0% {
    transform: rotate(0deg);
  }
  50% {
    transform: rotate(180deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

@keyframes moveVertical {
  0% {
    transform: translateY(-50%);
  }
  50% {
    transform: translateY(50%);
  }
  100% {
    transform: translateY(-50%);
  }
}

@keyframes moveHorizontal {
  0% {
    transform: translateX(-50%) translateY(-10%);
  }
  50% {
    transform: translateX(50%) translateY(10%);
  }
  100% {
    transform: translateX(-50%) translateY(-10%);
  }
}

.gradient-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  overflow: hidden;
  background: linear-gradient(40deg, var(--gradient-bg1), var(--gradient-bg2));
  z-index: -1;
}

.gradient-bg::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--black);
  z-index: 1;
  opacity: 0.5;
}

.gradient-bg svg {
  position: fixed;
  top: 0;
  left: 0;
  width: 0;
  height: 0;
}

.gradient-bg .gradients-container {
  filter: url(#goo) blur(40px);
  width: 100%;
  height: 100%;
}

.gradient-bg .g1 {
  position: absolute;
  background: radial-gradient(
      circle at center,
      rgba(var(--gradient-color1), 0.8) 0,
      rgba(var(--gradient-color1), 0) 50%
    )
    no-repeat;
  mix-blend-mode: var(--gradient-blending);
  width: var(--gradient-circle-size);
  height: var(--gradient-circle-size);
  top: calc(50% - var(--gradient-circle-size) / 2);
  left: calc(50% - var(--gradient-circle-size) / 2);
  transform-origin: center center;
  animation: moveVertical 30s ease infinite;
  opacity: 1;
}

.gradient-bg .g2 {
  position: absolute;
  background: radial-gradient(
      circle at center,
      rgba(var(--gradient-color2), 0.8) 0,
      rgba(var(--gradient-color2), 0) 50%
    )
    no-repeat;
  mix-blend-mode: var(--gradient-blending);
  width: var(--gradient-circle-size);
  height: var(--gradient-circle-size);
  top: calc(50% - var(--gradient-circle-size) / 2);
  left: calc(50% - var(--gradient-circle-size) / 2);
  transform-origin: calc(50% - 400px);
  animation: moveInCircle 20s reverse infinite;
  opacity: 1;
}

.gradient-bg .g3 {
  position: absolute;
  background: radial-gradient(
      circle at center,
      rgba(var(--gradient-color3), 0.8) 0,
      rgba(var(--gradient-color3), 0) 50%
    )
    no-repeat;
  mix-blend-mode: var(--gradient-blending);
  width: var(--gradient-circle-size);
  height: var(--gradient-circle-size);
  top: calc(50% - var(--gradient-circle-size) / 2 + 200px);
  left: calc(50% - var(--gradient-circle-size) / 2 - 500px);
  transform-origin: calc(50% + 400px);
  animation: moveInCircle 40s linear infinite;
  opacity: 1;
}

.gradient-bg .g4 {
  position: absolute;
  background: radial-gradient(
      circle at center,
      rgba(var(--gradient-color4), 0.8) 0,
      rgba(var(--gradient-color4), 0) 50%
    )
    no-repeat;
  mix-blend-mode: var(--gradient-blending);
  width: var(--gradient-circle-size);
  height: var(--gradient-circle-size);
  top: calc(50% - var(--gradient-circle-size) / 2);
  left: calc(50% - var(--gradient-circle-size) / 2);
  transform-origin: calc(50% - 200px);
  animation: moveHorizontal 40s ease infinite;
  opacity: 0.7;
}

.gradient-bg .g5 {
  position: absolute;
  background: radial-gradient(
      circle at center,
      rgba(var(--gradient-color5), 0.8) 0,
      rgba(var(--gradient-color5), 0) 50%
    )
    no-repeat;
  mix-blend-mode: var(--gradient-blending);
  width: calc(var(--gradient-circle-size) * 2);
  height: calc(var(--gradient-circle-size) * 2);
  top: calc(50% - var(--gradient-circle-size));
  left: calc(50% - var(--gradient-circle-size));
  transform-origin: calc(50% - 800px) calc(50% + 200px);
  animation: moveInCircle 20s ease infinite;
  opacity: 1;
}

.gradient-bg .interactive {
  position: absolute;
  background: radial-gradient(
      circle at center,
      rgba(var(--gradient-interactive), 0.8) 0,
      rgba(var(--gradient-interactive), 0) 50%
    )
    no-repeat;
  mix-blend-mode: var(--gradient-blending);
  width: 100%;
  height: 100%;
  top: -50%;
  left: -50%;
  opacity: 0.7;
}

/* Lottie Animations */
.contentAnimations {
  position: relative;
  min-height: 300px;
  overflow: hidden;
}

.anim-loader {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border-radius: 1rem;
  z-index: 10;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.anim-loader.active {
  opacity: 1;
  visibility: visible;
}

.anim-spinner {
  width: 48px;
  height: 48px;
  border: 4px solid rgba(255, 255, 255, 0.2);
  border-top-color: var(--blue);
  border-radius: 50%;
  animation: spinLoader 0.7s linear infinite;
}

@keyframes spinLoader {
  to { transform: rotate(360deg); }
}

/* Text Highlight Rotation */
#text-highlight {
  display: inline-block;
  color: var(--blue);
  transition:
    opacity 0.4s ease,
    transform 0.4s ease;
}

#text-highlight.fade-out {
  opacity: 0;
  transform: translateY(10px);
}

/* =========================================
   FAQs Modal
   ========================================= */
#modalFaqs .modal-content {
  border-radius: 1.5rem;

  /* From https://css.glass */
  background: rgba(0, 0, 0, 0.8);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  border: 1px solid rgba(255, 255, 255, 0.3);
}

#modalFaqs .modal-header {
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

#modalFaqs .modal-title {
  color: var(--white);
}

#modalFaqs .accordion-item {
  background-color: transparent;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

#modalFaqs .accordion-button {
  background-color: transparent;
  color: var(--white);
  font-weight: 600;
  box-shadow: none;
}

#modalFaqs .accordion-button:not(.collapsed) {
  background-color: rgba(37, 195, 254, 0.1);
  color: var(--blue);
}

#modalFaqs .accordion-button::after {
  filter: invert(1);
}

#modalFaqs .accordion-body {
  color: var(--gray);
}

/* =========================================
   Beta Modal
   ========================================= */
#modalBeta .modal-content {
  border-radius: 1.5rem;
  background: rgba(0, 0, 0, 0.8);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  border: 1px solid rgba(255, 255, 255, 0.3);
}

#modalBeta .modal-header {
  border-bottom: none;
}

#modalBeta h3 {
  color: var(--white);
}

#modalBeta p {
  color: var(--gray);
}

#modalBeta .form-label {
  color: var(--white);
}

#modalBeta .form-control {
  background-color: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: var(--white);
  border-radius: 0.75rem;
}

#modalBeta .form-control::placeholder {
  color: rgba(255, 255, 255, 0.35);
}

#modalBeta .form-control:focus {
  background-color: rgba(255, 255, 255, 0.08);
  border-color: var(--blue);
  box-shadow: 0 0 0 0.2rem rgba(37, 195, 254, 0.15);
  color: var(--white);
}

#modalBeta .form-check-label {
  color: var(--gray);
  font-size: 0.85rem;
}

#modalBeta .form-check-label a {
  color: var(--blue);
  text-decoration: underline;
}

#modalBeta .form-check-input {
  background-color: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.3);
}

#modalBeta .form-check-input:checked {
  background-color: var(--blue);
  border-color: var(--blue);
}

/* =========================================
   Scroll to Top Button
   ========================================= */
.scroll-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: var(--white);
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 999;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease, background 0.3s ease;
}

.scroll-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.scroll-top:hover {
  background: var(--blue);
  border-color: var(--blue);
}

/*Responsive*/

@media only screen and (max-width: 991px) {
  header {
    background: rgba(0, 0, 0, 0.6); 
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
  }
}

