:root {
  --primary-bg: #030712;
  --nav-bg: rgba(17, 24, 39, 0.7);
  --pill-bg: rgba(0, 0, 0, 0.55);
  --pill-border: rgba(255, 255, 255, 0.08);
  --glow-color: rgba(147, 51, 234, 0.35);
  --text-main: #ffffff;
  --text-muted: #9ca3af;
  --accent-gradients: linear-gradient(135deg, #48206E, #6C1A4B);
  --accent-border-gradients: linear-gradient(135deg, #563c6e, #6e3558);
  --accent-gradient: linear-gradient(135deg, #7c3aed, #db2777);
}

@font-face {
  font-family: 'NeueMachina';
  src: url('../fonts/NeueMachina/NeueMachina-Light.otf') format('opentype');
  font-weight: 300;
  font-style: normal;
}

@font-face {
  font-family: 'NeueMachina';
  src: url('../fonts/NeueMachina/NeueMachina-Regular.otf') format('opentype');
  font-weight: 400;
  font-style: normal;
}

@font-face {
  font-family: 'NeueMachina';
  src: url('../fonts/NeueMachina/NeueMachina-Ultrabold.otf') format('opentype');
  font-weight: 800;
  font-style: normal;
}

@font-face {
  font-family: 'NHaasGrotesk';
  src: url('../fonts/NHaasGrotesk/NHaasGroteskTXPro-55Rg.ttf') format('truetype');
  font-weight: 400;
}

@font-face {
  font-family: 'NHaasGrotesk';
  src: url('../fonts/NHaasGrotesk/NHaasGroteskTXPro-65Md.ttf') format('truetype');
  font-weight: 500;
}

@font-face {
  font-family: 'NHaasGrotesk';
  src: url('../fonts/NHaasGrotesk/NHaasGroteskTXPro-75Bd.ttf') format('truetype');
  font-weight: 700;
}

/* ===============================
   GLOBAL RESET
=================================*/

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
}

html {
  scroll-behavior: smooth;
}

/* Offset scroll target so fixed header doesn't cover section */
#app > [id$="-placeholder"] {
  scroll-margin-top: 100px;
}

@media (max-width: 768px) {
  #app > [id$="-placeholder"] {
    scroll-margin-top: 70px; /* Smaller offset for mobile header */
  }
}

/* Privacy Policy should not be visible until user explicitly opens it
   (footer "Privacy Policy" link switches the app into privacy-only mode). */
#privacy-placeholder {
  display: none;
}

body.is-privacy-only-view #privacy-placeholder {
  display: block;
}


body {
  /* background-color: var(--primary-bg); */
  color: var(--text-main);
  line-height: 1.5;
}

/* ===============================
   PAGE VISIBILITY CONTROL
=================================*/
/* Home page reveal animation */
#app {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 1.8s ease, transform 1.8s ease;
}

body.is-ready #app {
  opacity: 1;
  transform: translateY(0);
}

body.is-ready header {
  opacity: 1;
  transform: translateY(0);
}

body.is-ready #loader {
  display: none;
  pointer-events: none;
}

/* ===============================
   LOADER (Phase 1 + Phase 2)
=================================*/

#loader {
  position: fixed;
  inset: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 999;
  overflow: hidden;

  /* FINAL BACKGROUND (visible after reveal) */
  background:
    radial-gradient(1800px 500px at 50% 120%,
      rgba(0, 170, 255, 0.75) 0%,
      rgba(0, 170, 255, 0.45) 35%,
      rgba(0, 170, 255, 0.0) 75%),
    radial-gradient(900px 600px at 25% 0%,
      rgba(80, 39, 77, 0.75),
      transparent 65%),
    radial-gradient(900px 600px at 75% 0%,
      rgba(80, 39, 77, 0.75),
      transparent 65%),
    #000;

  perspective: 1200px;
}

/* Black overlay -> fades while Phase-1 runs (so color appears gradually) */
#loader::before {
  content: "";
  position: absolute;
  inset: 0;
  background: #000;
  z-index: 1;
  animation: revealGradient 4.8s ease-in-out forwards;
  /* Phase-1 duration */
}

@keyframes revealGradient {
  0% {
    opacity: 1;
  }

  15% {
    opacity: 1;
  }

  45% {
    opacity: 0.55;
  }

  70% {
    opacity: 0.25;
  }

  100% {
    opacity: 0;
  }
}

/* ===============================
   PHASE 1: RING (stop/go zoom back)
=================================*/

.horizontal-circle {
  width: 185px;
  height: 185px;
  position: relative;
  z-index: 2;

  transform-style: preserve-3d;
  transform: rotateX(-68deg) scale(1);

  /* Phase-1 */
  animation: stepZoom 3s ease-in-out forwards, ringFadeOut 0.6s ease forwards;
  animation-delay: 0s, 3s;
  /* fade ring after Phase-1 ends */
}

@keyframes stepZoom {
  0% {
    transform: rotateX(-68deg) scale(1);
  }

  15% {
    transform: rotateX(-68deg) scale(0.75);
  }

  22% {
    transform: rotateX(-68deg) scale(0.75);
  }

  /* stop */

  40% {
    transform: rotateX(-68deg) scale(0.5);
  }

  47% {
    transform: rotateX(-68deg) scale(0.5);
  }

  /* stop */

  70% {
    transform: rotateX(-68deg) scale(0.28);
  }

  100% {
    transform: rotateX(-68deg) scale(0.28);
  }
}

@keyframes ringFadeOut {
  to {
    opacity: 0;
  }
}

/* dots */
.dot {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 49.574px;
  height: 49.574px;
  background: #fff;
  border-radius: 50%;
  animation: orbitDepth 6s linear infinite;
}

/* 12 delays */
.dot:nth-child(1) {
  animation-delay: 0s;
}

.dot:nth-child(2) {
  animation-delay: -0.5s;
}

.dot:nth-child(3) {
  animation-delay: -1s;
}

.dot:nth-child(4) {
  animation-delay: -1.5s;
}

.dot:nth-child(5) {
  animation-delay: -2s;
}

.dot:nth-child(6) {
  animation-delay: -2.5s;
}

.dot:nth-child(7) {
  animation-delay: -3s;
}

.dot:nth-child(8) {
  animation-delay: -3.5s;
}

.dot:nth-child(9) {
  animation-delay: -4s;
}

.dot:nth-child(10) {
  animation-delay: -4.5s;
}

.dot:nth-child(11) {
  animation-delay: -5s;
}

.dot:nth-child(12) {
  animation-delay: -5.5s;
}

@keyframes orbitDepth {
  0% {
    transform: translate(-50%, -50%) rotate(0deg) translateX(130px) rotate(0deg) scale(1);
    opacity: 1;
    filter: blur(0px);
  }

  50% {
    transform: translate(-50%, -50%) rotate(180deg) translateX(130px) rotate(-180deg) scale(0.55);
    opacity: 0.25;
    filter: blur(3px);
  }

  100% {
    transform: translate(-50%, -50%) rotate(360deg) translateX(130px) rotate(-360deg) scale(1);
    opacity: 1;
    filter: blur(0px);
  }
}

/* ===============================
   PHASE 2: LOGO COMES FORWARD
=================================*/
.loader-logo {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 3;

  width: 149px;
  height: 52px;
  object-fit: contain;

  opacity: 0;

  /* true 3D */
  transform: translate(-50%, -50%) translateZ(0px);

  animation: logoForward 2.6s cubic-bezier(0.22, 1, 0.36, 1) forwards;
  animation-delay: 3s;
}

/* 3D cinematic forward motion */
@keyframes logoForward {

  0% {
    opacity: 0;
    transform: translate(-50%, -50%) translateZ(0px);
  }

  10% {
    opacity: 1;
  }

  100% {
    opacity: 1;
    transform: translate(-50%, -50%) translateZ(1200px);
  }
}

/* ===============================
   HEADER
=================================*/

header {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
  padding: 1.5rem 2rem;
  background: transparent;
  top: 0;
  z-index: 1000;
  opacity: 0;

}

/* ===============================
   NAV CONTAINER
=================================*/

nav {
  max-width: 1400px;
  display: flex;
  justify-content: space-between;
  /* align-items: center; */
  top: 0;
  top: 30px;
  width: 100%;
  z-index: 1000;

}

/* ===============================
   LOGO
=================================*/

.logo-container {
  display: flex;
  align-items: center;
  text-decoration: none;
  flex: 1;
}

.logo-img {
  height: 40px;
  width: auto;
  display: block;
  transition: filter 0.3s ease;
}

.logo-container:hover .logo-img {
  filter: brightness(0) saturate(100%) invert(42%) sepia(89%) saturate(1500%) hue-rotate(208deg) brightness(98%) contrast(97%);
}

/* ===============================
   NAV PILL (CENTER)
=================================*/
.action-btns-container {
  display: flex;
  justify-content: end;
  gap: 10px;
  width: 100%;
  justify-self: end;
}

.nav-pill-container {
  display: flex;
  justify-content: center;
  align-items: center;
  background: var(--pill-bg);
  background: var(--accent-gradients);
  backdrop-filter: blur(25px);
  -webkit-backdrop-filter: blur(25px);
  border: 1px solid var(--accent-border-gradients);
  border-radius: 100px;
  padding: 3px;
  box-shadow:
    0 0 35px var(--glow-color),
    inset 0 0 15px rgba(255, 255, 255, 0.03);
}

/* ===============================
   NAV LINKS
=================================*/

.nav-links {
  display: flex;
  list-style: none;
  gap: 2px;
}

.nav-links a {
  position: relative;
  text-decoration: none;
  color: var(--text-main);
  /* font-family: "GT America Trial"; */
  font-size: 14px;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 0.6rem 1.5rem;
  border-radius: 100px;
  transition: all 0.3s ease;
  display: block;

}

/* Hover & Active States */

.nav-links a:hover {
  color: var(--text-main);
  /* background: #3a84f6; */
}

.nav-links a.active::after {
  display: none;
}

.nav-contact-btn {
  display: flex;
  flex-direction: row-reverse;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 5px;
  width: 162px;
  height: 54px;
  border-radius: 31px;
  background: var(--accent-gradients);
background-image: linear-gradient(to right,
      #48206E,
      #6C1A4B);
  /* background: linear-gradient(90deg, rgba(173, 70, 255, 0.60) 0%, rgba(246, 51, 154, 0.60) 100%); */
/* #48206E,
  #6C1A4B */
  text-decoration: none;
  color: #fff;
  font-family: "GT America Trial", sans-serif;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 1px;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.4s ease;
}

.btn-arrow-wrapper {
  width: 23px;
  height: 23px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  transition: all 0.4s ease;
}

.btn-arrow {
  width: 23px;
  height: 23px;
  filter: brightness(0) invert(1);
  transition: all 0.4s ease;
}

/* Same 3s animated hover as Know More button */
.nav-contact-btn:hover {
  animation: navContactButtonEffect 3s forwards;
}

.nav-contact-btn:hover .btn-text {
  animation: navContactTextMove 3s forwards;
}

.nav-contact-btn:hover .btn-arrow-wrapper {
  animation: navContactIconMove 3s forwards;
}

@keyframes navContactButtonEffect {
  0% {
    background-image: linear-gradient(to right,
      rgba(173, 70, 255, 0.6),
      rgba(246, 51, 154, 0.6));
  }
  20% {
    background-image: linear-gradient(to right, #7B2FFF, #9D2CFF);
  }
  100% {
    background-image: linear-gradient(to right,
      rgba(173, 70, 255, 0.6),
      rgba(246, 51, 154, 0.6));
  }
}

@keyframes navContactTextMove {
  0% {
    transform: translateX(0);
  }
  30% {
    transform: translateX(-25px);
  }
  100% {
    transform: translateX(-25px);
  }
}

@keyframes navContactIconMove {
  0% {
    transform: translateX(0);
    background: transparent;
  }
  30% {
    transform: translateX(90px);
    background: #F6339A;
  }
  100% {
    transform: translateX(90px);
    background: transparent;
  }
}

/* ===============================
   MOBILE MENU BUTTON
=================================*/

.mobile-menu-btn {
  display: none;
  align-items: center;
  justify-content: center;
  padding: 8px;
  background: none;
  border: none;
  cursor: pointer;
  margin-left: auto;
}

.mobile-menu-icon {
  display: block;
  width: 28px;
  height: 24px;
  background-color: #fff;
  mask: url('../../public/assets/icons/nav-icon.svg') center / contain no-repeat;
  -webkit-mask: url('../../public/assets/icons/nav-icon.svg') center / contain no-repeat;
  transition: background 0.3s ease;
}

header.is-scrolled .mobile-menu-icon {
  background: linear-gradient(135deg, #3b82f6 0%, #8b5cf6 50%, #7c3aed 100%);
}

/* ===============================
   MOBILE MENU - WHITE PANEL RIGHT
=================================*/

.mobile-menu-overlay {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100vh;
  min-height: 100dvh;
  z-index: 9999;
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s ease, visibility 0.35s ease;
}

.mobile-menu-overlay.active {
  pointer-events: auto;
  opacity: 1;
  visibility: visible;
}

.mobile-menu-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.3);
  opacity: 0;
  transition: opacity 0.35s ease;
}

.mobile-menu-overlay.active .mobile-menu-backdrop {
  opacity: 1;
}

.mobile-menu-panel {
  position: absolute;
  top: 0;
  right: 0;
  width: 70%;
  max-width: 320px;
  height: 100%;
  min-height: 100vh;
  min-height: 100dvh;
  background: #fff;
  border-radius: 24px 0 0 24px;
  padding: 2rem 1.5rem;
  transform: translateX(100%);
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: -4px 0 24px rgba(0, 0, 0, 0.15);
}

.mobile-menu-overlay.active .mobile-menu-panel {
  transform: translateX(0);
}

.mobile-menu-close {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  width: 36px;
  height: 36px;
  padding: 0;
  background: none;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.close-line {
  position: absolute;
  width: 20px;
  height: 2px;
  background: #374151;
  border-radius: 2px;
}

.close-line:nth-child(1) {
  transform: rotate(45deg);
}

.close-line:nth-child(2) {
  transform: rotate(-45deg);
}

.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  padding-top: 4rem;
}

.mobile-nav-link {
  display: inline-block;
  position: relative;
  padding-left: 36px;
  color: #000;
  font-family: "TiemposHeadline", "Tiempos Headline", Georgia, serif;
  font-size: 22px;
  font-style: italic;
  font-weight: 300;
  line-height: 1.3;
  text-decoration: none;
  transition: all 0.45s ease;
}

/* Sectors-like hover/active: purple arrow + blue gradient */
.mobile-nav-link::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 26px;
  height: 18px;
  transform: translateY(-50%) translateX(-12px);
  /* background: url("/public/assets/icons/sectors-section-arrow.png") no-repeat center; */
  background: url("../../public/assets/icons/sectors-section-arrow.png") no-repeat center;
  background-size: contain;
  opacity: 0;
  transition: all 0.4s ease;
}

.mobile-nav-link:hover,
.mobile-nav-link.active {
  transform: translateX(18px);
  background: linear-gradient(90deg, #3884fe 0%, #6da3f9 40%, #c1d7fa 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.mobile-nav-link:hover::before,
.mobile-nav-link.active::before {
  opacity: 1;
  transform: translateY(-50%) translateX(0);
}

/* ===============================
   RESPONSIVE
=================================*/

@media (max-width: 992px) {
  .nav-pill-container {
    display: none;
  }

  .nav-contact-btn {
    display: none;
  }

  .mobile-menu-btn {
    display: flex;
  }
}

/* =================================
   LOADER RESPONSIVE
=================================*/

/* -------- TABLET (iPad) -------- */

@media (max-width:1024px){

  .horizontal-circle{
    width:140px;
    height:140px;
  }

  .dot{
    width:36px;
    height:36px;
  }

  @keyframes orbitDepth {
    0%{
      transform: translate(-50%, -50%) rotate(0deg) translateX(95px) rotate(0deg) scale(1);
      opacity:1;
      filter:blur(0px);
    }

    50%{
      transform: translate(-50%, -50%) rotate(180deg) translateX(95px) rotate(-180deg) scale(0.55);
      opacity:0.25;
      filter:blur(3px);
    }

    100%{
      transform: translate(-50%, -50%) rotate(360deg) translateX(95px) rotate(-360deg) scale(1);
      opacity:1;
      filter:blur(0px);
    }
  }

  .loader-logo{
    width:120px;
    height:auto;
  }

}


/* -------- MOBILE -------- */

@media (max-width:600px){

  .horizontal-circle{
    width:100px;
    height:100px;
  }

  .dot{
    width:26px;
    height:26px;
  }

  @keyframes orbitDepth {
    0%{
      transform: translate(-50%, -50%) rotate(0deg) translateX(70px) rotate(0deg) scale(1);
      opacity:1;
      filter:blur(0px);
    }

    50%{
      transform: translate(-50%, -50%) rotate(180deg) translateX(70px) rotate(-180deg) scale(0.55);
      opacity:0.25;
      filter:blur(2px);
    }

    100%{
      transform: translate(-50%, -50%) rotate(360deg) translateX(70px) rotate(-360deg) scale(1);
      opacity:1;
      filter:blur(0px);
    }
  }

  .loader-logo{
    width:95px;
    height:auto;
  }

}
.mobile-menu-btn{
  margin-top: 0px;
}