:root {
  --ibf-ink: #07111f;
  --ibf-panel: #ffffff;
  --ibf-green: #0b7a4b;
  --ibf-signal: #28d7ff;
  --ibf-mint: #91f4c8;
  --ibf-gold: #f2c86a;
  --ibf-line: rgba(7, 17, 31, 0.1);
}

* {
  letter-spacing: 0 !important;
}

::selection {
  background: rgba(40, 215, 255, 0.24);
  color: var(--ibf-ink);
}

body {
  background:
    linear-gradient(180deg, rgba(247, 249, 245, 0.92), rgba(255, 255, 255, 0.94)),
    repeating-linear-gradient(90deg, rgba(7, 17, 31, 0.035) 0 1px, transparent 1px 92px);
  color: var(--ibf-ink);
}

header.sticky {
  box-shadow: 0 10px 34px rgba(7, 17, 31, 0.08);
}

.logo-lockup img {
  max-height: 78px;
  object-fit: contain;
  filter: drop-shadow(0 10px 18px rgba(7, 17, 31, 0.12));
}

.nav-link {
  position: relative;
}

.nav-link::after {
  content: "";
  position: absolute;
  right: 0.75rem;
  bottom: 0.36rem;
  left: 0.75rem;
  height: 2px;
  background: linear-gradient(90deg, var(--ibf-green), var(--ibf-signal), var(--ibf-gold));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 220ms ease;
}

[dir="rtl"] .nav-link::after {
  transform-origin: right;
}

.nav-link:hover::after,
.nav-link:focus-visible::after {
  transform: scaleX(1);
}

main > section {
  position: relative;
  overflow: hidden;
}

.bg-ink,
.bg-navy {
  isolation: isolate;
}

.bg-ink::before,
.bg-navy::before,
.grid-texture::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(110deg, transparent 0 32%, rgba(40, 215, 255, 0.14) 46%, rgba(242, 200, 106, 0.1) 52%, transparent 66%),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.075) 0 1px, transparent 1px 72px),
    repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.055) 0 1px, transparent 1px 72px);
  opacity: 0.48;
  transform: translate3d(-8%, 0, 0);
  animation: ibf-circuit-sweep 12s ease-in-out infinite;
  z-index: 1;
}

.grid-texture::before {
  background:
    linear-gradient(110deg, transparent 0 36%, rgba(40, 215, 255, 0.1) 48%, transparent 60%),
    repeating-linear-gradient(90deg, rgba(7, 17, 31, 0.055) 0 1px, transparent 1px 76px),
    repeating-linear-gradient(0deg, rgba(7, 17, 31, 0.04) 0 1px, transparent 1px 76px);
  opacity: 0.42;
}

.bg-ink > .section-shell,
.bg-navy > .section-shell,
.grid-texture > .section-shell {
  position: relative;
  z-index: 2;
}

.motion-lines {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(40, 215, 255, 0), rgba(40, 215, 255, 0.28), rgba(40, 215, 255, 0)),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.14) 0 1px, transparent 1px 96px);
  background-size: 54% 100%, 96px 100%;
  background-position: -80% 0, 0 0;
  mix-blend-mode: screen;
  animation: ibf-data-lines 7.5s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}

.motion-lines::after {
  content: "";
  position: absolute;
  top: 12%;
  right: 0;
  left: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--ibf-mint), var(--ibf-gold), transparent);
  box-shadow: 0 0 18px rgba(145, 244, 200, 0.5);
  animation: ibf-scanline 4.8s ease-in-out infinite;
}

.hero-drift {
  transform-origin: center;
  animation: ibf-hero-drift 22s ease-in-out infinite alternate;
  filter: saturate(1.08) contrast(1.06);
}

.reveal-up {
  opacity: 0;
  transform: translate3d(0, 22px, 0);
  animation: ibf-reveal 760ms cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

.reveal-delay-1 {
  animation-delay: 120ms;
}

.reveal-delay-2 {
  animation-delay: 220ms;
}

.reveal-delay-3 {
  animation-delay: 340ms;
}

.interactive-card {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(7, 17, 31, 0.08);
  border-radius: 8px;
  transform: translateZ(0);
  transition:
    transform 260ms ease,
    box-shadow 260ms ease,
    border-color 260ms ease,
    background-color 260ms ease;
}

.interactive-card::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(540px circle at var(--ibf-pointer-x, 50%) var(--ibf-pointer-y, 0%), rgba(40, 215, 255, 0.2), transparent 40%);
  opacity: 0;
  transition: opacity 260ms ease;
}

.interactive-card::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  border: 1px solid transparent;
  border-image: linear-gradient(135deg, rgba(40, 215, 255, 0.55), rgba(145, 244, 200, 0), rgba(242, 200, 106, 0.42)) 1;
  opacity: 0;
  transition: opacity 260ms ease;
}

.interactive-card:hover,
.interactive-card:focus-within {
  border-color: rgba(40, 215, 255, 0.35);
  box-shadow: 0 22px 55px rgba(7, 17, 31, 0.14);
  transform: translate3d(0, -6px, 0);
}

.interactive-card:hover::before,
.interactive-card:focus-within::before,
.interactive-card:hover::after,
.interactive-card:focus-within::after {
  opacity: 1;
}

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

.icon-float {
  animation: ibf-icon-float 4.8s ease-in-out infinite;
}

a.bg-green,
button.bg-green,
a.bg-ink,
button.bg-ink,
a.bg-white,
button.bg-white {
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  box-shadow: 0 12px 28px rgba(7, 17, 31, 0.12);
}

a.bg-green::after,
button.bg-green::after,
a.bg-ink::after,
button.bg-ink::after,
a.bg-white::after,
button.bg-white::after {
  content: "";
  position: absolute;
  inset: -2px;
  pointer-events: none;
  background: linear-gradient(110deg, transparent 0 35%, rgba(255, 255, 255, 0.42) 48%, transparent 62%);
  transform: translateX(-120%);
  animation: ibf-button-sheen 4.6s ease-in-out infinite;
}

input,
textarea,
select {
  border-radius: 8px;
}

.ibf-phone-actions {
  align-items: center;
}

.ibf-phone-actions > a:first-child {
  margin-top: 0 !important;
}

.ibf-whatsapp-link {
  border-radius: 8px;
  background: #0b7a4b;
  color: #ffffff !important;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 2.75rem;
  padding: 0.72rem 1rem;
  font-size: 0.875rem;
  font-weight: 700;
  line-height: 1;
  text-decoration: none;
  transition:
    transform 220ms ease,
    background-color 220ms ease,
    box-shadow 220ms ease;
}

.ibf-whatsapp-link:hover,
.ibf-whatsapp-link:focus-visible {
  background: #0d2238;
  box-shadow: 0 12px 28px rgba(7, 17, 31, 0.14);
  transform: translate3d(0, -2px, 0);
}

.ibf-whatsapp-link svg {
  height: 1rem;
  width: 1rem;
}

@keyframes ibf-circuit-sweep {
  0%,
  100% {
    transform: translate3d(-8%, 0, 0);
  }

  50% {
    transform: translate3d(8%, 0, 0);
  }
}

@keyframes ibf-data-lines {
  0%,
  18% {
    background-position: -80% 0, 0 0;
    opacity: 0.5;
  }

  48% {
    background-position: 120% 0, 36px 0;
    opacity: 0.78;
  }

  100% {
    background-position: 120% 0, 96px 0;
    opacity: 0.5;
  }
}

@keyframes ibf-scanline {
  0%,
  100% {
    transform: translate3d(0, 0, 0);
    opacity: 0.22;
  }

  50% {
    transform: translate3d(0, 58vh, 0);
    opacity: 0.86;
  }
}

@keyframes ibf-hero-drift {
  from {
    transform: scale(1.02) translate3d(0, 0, 0);
  }

  to {
    transform: scale(1.09) translate3d(-1.5%, -1%, 0);
  }
}

@keyframes ibf-reveal {
  to {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}

@keyframes ibf-icon-float {
  0%,
  100% {
    transform: translate3d(0, 0, 0);
  }

  50% {
    transform: translate3d(0, -6px, 0);
  }
}

@keyframes ibf-button-sheen {
  0%,
  44% {
    transform: translateX(-120%);
  }

  74%,
  100% {
    transform: translateX(120%);
  }
}

@media (max-width: 640px) {
  .logo-lockup img {
    max-height: 62px;
  }

  .interactive-card:hover,
  .interactive-card:focus-within {
    transform: translate3d(0, -3px, 0);
  }
}

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