/* ==========================================================================
   FINANCIVA TAX — B3H SCREENSHOT-DRIVEN VISUAL SYSTEM
   ========================================================================== */

:root {
  --fin-cyan: #28cde8;
  --fin-blue: #4e91ff;
  --fin-green: #39e3a5;
  --fin-green-strong: #53f0b3;

  --fin-cyan-soft: rgba(40, 205, 232, .15);
  --fin-green-soft: rgba(57, 227, 165, .18);

  --fin-ease: cubic-bezier(.22, 1, .36, 1);
}


/* ==========================================================================
   HERO TITLE
   ========================================================================== */

.hero-copy h1.fin-hero-title-b3h {
  margin: 0;

  max-width: 620px;

  font-size:
    clamp(
      60px,
      5vw,
      84px
    );

  line-height: .895;

  letter-spacing: -.054em;

  word-spacing: .035em;

  text-align: left;

  text-wrap: initial;

  font-kerning: normal;
}


.fin-hero-title-b3h .fin-title-line {
  display: block;
  white-space: nowrap;
}


.fin-hero-title-b3h .fin-title-accent {
  color: #19a9cb;
  background:
    linear-gradient(
      90deg,
      #129fbe,
      #20bfd9 58%,
      #438ce9
    );

  -webkit-background-clip: text;
  background-clip: text;

  -webkit-text-fill-color: transparent;
}


@media (max-width: 980px) {

  .hero-copy h1.fin-hero-title-b3h {
    font-size:
      clamp(
        48px,
        8vw,
        70px
      );

    line-height: .92;
  }

  .fin-hero-title-b3h .fin-title-line {
    white-space: normal;
  }
}


/* ==========================================================================
   ACTIVE LIVE SURFACES
   ========================================================================== */

.fin-active-live-surface {
  position: relative;
  isolation: isolate;

  border-color:
    rgba(57, 227, 165, .72) !important;

  background:
    linear-gradient(
      145deg,
      rgba(255,255,255,.94),
      rgba(230,255,246,.86)
    ) !important;

  box-shadow:
    0 0 0 1px rgba(57,227,165,.22),
    0 0 30px rgba(57,227,165,.13),
    0 13px 32px rgba(34,132,95,.08) !important;

  animation:
    fin-live-surface-breathe
    3.4s
    ease-in-out
    infinite;
}


.fin-active-live-surface::before {
  content: "";

  position: absolute;
  inset: -1px;

  border-radius: inherit;

  pointer-events: none;

  background:
    linear-gradient(
      110deg,
      transparent 8%,
      rgba(66, 255, 181, 0) 30%,
      rgba(66, 255, 181, .30) 48%,
      rgba(66, 255, 181, .06) 58%,
      transparent 78%
    );

  opacity: 0;

  animation:
    fin-green-sweep
    5.5s
    ease-in-out
    infinite;
}


.fin-live-label {
  color: #138c60 !important;

  background:
    rgba(57,227,165,.13) !important;

  border-color:
    rgba(57,227,165,.38) !important;

  box-shadow:
    0 0 14px
    rgba(57,227,165,.18);
}


/* ==========================================================================
   JURISDICTION GRID
   ========================================================================== */

.fin-jurisdiction-card {
  position: relative;
  isolation: isolate;
  overflow: hidden;

  will-change:
    translate,
    box-shadow,
    filter;

  animation:
    fin-country-float
    6.4s
    ease-in-out
    infinite;
}


.fin-jurisdiction-card:not(.fin-active-country-card)::after {
  content: "";

  position: absolute;

  top: -35%;
  left: -48%;

  width: 34%;
  height: 175%;

  transform: rotate(13deg);

  pointer-events: none;

  background:
    linear-gradient(
      90deg,
      transparent,
      rgba(45,212,241,.03),
      rgba(45,212,241,.31),
      rgba(74,142,255,.16),
      rgba(45,212,241,.04),
      transparent
    );

  opacity: 0;

  animation:
    fin-country-sequential-scan
    12.8s
    ease-in-out
    infinite;
}


.fin-jurisdiction-card:not(.fin-active-country-card) {
  animation:
    fin-country-float 6.4s ease-in-out infinite,
    fin-country-sequential-glow 12.8s ease-in-out infinite;
}


.fin-country-seq-1 {
  animation-delay: 0s, 0s !important;
}

.fin-country-seq-2 {
  animation-delay: -.7s, -1.6s !important;
}

.fin-country-seq-3 {
  animation-delay: -1.4s, -3.2s !important;
}

.fin-country-seq-4 {
  animation-delay: -2.1s, -4.8s !important;
}

.fin-country-seq-5 {
  animation-delay: -2.8s, -6.4s !important;
}

.fin-country-seq-6 {
  animation-delay: -3.5s, -8s !important;
}

.fin-country-seq-7 {
  animation-delay: -4.2s, -9.6s !important;
}


.fin-country-seq-1::after { animation-delay: 0s !important; }
.fin-country-seq-2::after { animation-delay: 1.6s !important; }
.fin-country-seq-3::after { animation-delay: 3.2s !important; }
.fin-country-seq-4::after { animation-delay: 4.8s !important; }
.fin-country-seq-5::after { animation-delay: 6.4s !important; }
.fin-country-seq-6::after { animation-delay: 8s !important; }
.fin-country-seq-7::after { animation-delay: 9.6s !important; }


.fin-active-country-card {
  position: relative;

  border-color:
    rgba(57,227,165,.80) !important;

  box-shadow:
    0 0 0 1px rgba(57,227,165,.29),
    0 0 36px rgba(57,227,165,.18),
    0 16px 39px rgba(30,137,96,.09) !important;

  background:
    linear-gradient(
      145deg,
      rgba(255,255,255,.96),
      rgba(228,255,245,.90)
    ) !important;

  animation:
    fin-live-country-breathe
    3.5s
    ease-in-out
    infinite !important;
}


.fin-active-country-card::after {
  content: "";

  position: absolute;

  top: -35%;
  left: -46%;

  width: 36%;
  height: 175%;

  transform: rotate(13deg);

  pointer-events: none;

  background:
    linear-gradient(
      90deg,
      transparent,
      rgba(69,255,182,.03),
      rgba(69,255,182,.40),
      rgba(69,255,182,.08),
      transparent
    );

  animation:
    fin-green-sweep
    5.3s
    ease-in-out
    infinite;
}


@media (hover:hover) and (pointer:fine) {

  .fin-jurisdiction-card:hover {
    animation-play-state: paused;

    translate: 0 -8px;
    scale: 1.016;

    border-color:
      rgba(38,207,238,.72) !important;

    box-shadow:
      0 0 0 1px rgba(38,207,238,.26),
      0 0 39px rgba(38,207,238,.19),
      0 21px 50px rgba(34,105,153,.14) !important;
  }


  .fin-active-country-card:hover {
    border-color:
      rgba(73,245,177,.98) !important;

    box-shadow:
      0 0 0 1px rgba(73,245,177,.42),
      0 0 48px rgba(73,245,177,.31),
      0 22px 51px rgba(30,137,96,.14) !important;
  }
}


/* ==========================================================================
   GLOBAL COVERAGE / REAL FLAT GLOBE
   ========================================================================== */

.world-card.glass {
  position: relative;
  overflow: hidden;
}


.world-map {
  position: relative;
}


.fin-flat-globe {
  position: absolute;

  left: 50%;
  top: 48%;

  width:
    min(
      236px,
      37%
    );

  aspect-ratio: 1;

  translate:
    -50% -50%;

  object-fit: contain;

  pointer-events: none;

  z-index: 2;

  opacity: .92;

  filter:
    drop-shadow(
      0 0 16px
      rgba(36,204,232,.20)
    )
    drop-shadow(
      0 0 38px
      rgba(62,131,255,.12)
    );

  animation:
    fin-flat-globe-breathe
    5.2s
    ease-in-out
    infinite;
}


.fin-globe-orbit-layer {
  position: absolute;

  left: 50%;
  top: 48%;

  width: 42%;
  aspect-ratio: 1;

  translate: -50% -50%;

  pointer-events: none;

  z-index: 3;

  border:
    1px solid
    rgba(41,197,226,.22);

  border-radius: 50%;

  animation:
    fin-globe-orbit
    18s
    linear
    infinite;
}


.fin-globe-orbit-layer::before,
.fin-globe-orbit-layer::after {
  content: "";
  position: absolute;

  inset: 11% -10%;

  border:
    1px solid
    rgba(56,160,239,.16);

  border-radius: 50%;
}


.fin-globe-orbit-layer::before {
  rotate: 54deg;
}


.fin-globe-orbit-layer::after {
  rotate: -58deg;
}


/* Hide the old synthetic ring globe injected by previous versions. */

.fin-intelligence-globe {
  display: none !important;
}


/* ==========================================================================
   100 / OPERATIONAL — BOTTOM CENTER
   ========================================================================== */

.world-card.glass .fin-readiness-dock {
  position: absolute !important;

  left: 50% !important;
  right: auto !important;

  top: auto !important;
  bottom: 18px !important;

  translate:
    -50% 0 !important;

  transform:
    none !important;

  z-index: 12 !important;

  width:
    min(
      280px,
      46%
    ) !important;

  min-height:
    88px;

  margin: 0 !important;

  background:
    rgba(249,254,255,.90) !important;

  backdrop-filter:
    blur(18px);

  border:
    1px solid
    rgba(50,204,224,.24) !important;

  box-shadow:
    0 12px 38px rgba(35,111,154,.11),
    0 0 25px rgba(45,216,222,.12) !important;
}


.world-card.glass .fin-readiness-dock
.fin-readiness-core {
  animation:
    fin-ready-breathe
    3s
    ease-in-out
    infinite;
}


/* ==========================================================================
   MULTI-JURISDICTION
   ========================================================================== */

.fin-global-position-core {
  animation:
    fin-center-breathe
    4s
    ease-in-out
    infinite !important;

  box-shadow:
    0 0 0 11px rgba(40,205,232,.035),
    0 0 35px rgba(40,205,232,.12);
}


.fin-orbit-chip {
  position: relative;

  animation:
    fin-satellite-float
    5.6s
    ease-in-out
    infinite;
}


.fin-satellite-seq-1 {
  animation-delay: 0s !important;
}

.fin-satellite-seq-2 {
  animation-delay: -.95s !important;
}

.fin-satellite-seq-3 {
  animation-delay: -1.9s !important;
}

.fin-satellite-seq-4 {
  animation-delay: -2.85s !important;
}

.fin-satellite-seq-5 {
  animation-delay: -3.8s !important;
}


.fin-orbit-chip::after {
  content: "";

  position: absolute;
  inset: -2px;

  pointer-events: none;

  border-radius: inherit;

  border:
    1px solid transparent;

  animation:
    fin-satellite-neon
    7.5s
    ease-in-out
    infinite;
}


.fin-satellite-seq-1::after { animation-delay: 0s; }
.fin-satellite-seq-2::after { animation-delay: 1.5s; }
.fin-satellite-seq-3::after { animation-delay: 3s; }
.fin-satellite-seq-4::after { animation-delay: 4.5s; }
.fin-satellite-seq-5::after { animation-delay: 6s; }


/* ==========================================================================
   FINANCIVA METHOD
   ========================================================================== */

.fin-method-card {
  position: relative;
  overflow: hidden;

  animation:
    fin-method-float
    6s
    ease-in-out
    infinite;
}


.fin-method-card::before {
  content: "";

  position: absolute;
  inset: -1px;

  pointer-events: none;

  border-radius: inherit;

  border:
    1px solid transparent;

  animation:
    fin-method-neon
    9s
    ease-in-out
    infinite;
}


.fin-method-seq-1 {
  animation-delay: 0s !important;
}

.fin-method-seq-2 {
  animation-delay: -.8s !important;
}

.fin-method-seq-3 {
  animation-delay: -1.6s !important;
}

.fin-method-seq-4 {
  animation-delay: -2.4s !important;
}

.fin-method-seq-5 {
  animation-delay: -3.2s !important;
}


.fin-method-seq-1::before { animation-delay: 0s; }
.fin-method-seq-2::before { animation-delay: 1.8s; }
.fin-method-seq-3::before { animation-delay: 3.6s; }
.fin-method-seq-4::before { animation-delay: 5.4s; }
.fin-method-seq-5::before { animation-delay: 7.2s; }


@media (hover:hover) and (pointer:fine) {

  .fin-method-card:hover {
    animation-play-state: paused;

    translate:
      0 -7px;

    scale:
      1.014;

    border-color:
      rgba(37,202,233,.62) !important;

    box-shadow:
      0 18px 41px rgba(32,105,148,.11),
      0 0 31px rgba(37,202,233,.17) !important;
  }
}


/* ==========================================================================
   GLOBAL TAX OPERATIONS
   FIX WHITE RECTANGLE / BAD SCAN ARTIFACT
   ========================================================================== */

.fin-operations-tile {
  position: relative;
  overflow: visible !important;

  animation:
    fin-operations-float
    6.8s
    ease-in-out
    infinite;
}


/*
 Previous generic scan pseudo-elements could create the white rectangle
 seen over "Tax Digital Twin". Kill them on operations cards.
*/

.fin-operations-tile::before,
.fin-operations-tile::after {
  content: none !important;
  display: none !important;
}


.fin-operations-seq-1 {
  animation-delay: 0s !important;
}

.fin-operations-seq-2 {
  animation-delay: -.9s !important;
}

.fin-operations-seq-3 {
  animation-delay: -1.8s !important;
}

.fin-operations-seq-4 {
  animation-delay: -2.7s !important;
}


.fin-operations-tile {
  transition:
    translate 260ms var(--fin-ease),
    scale 260ms var(--fin-ease),
    border-color 240ms ease,
    box-shadow 280ms ease,
    background-color 280ms ease;
}


.fin-operations-tile.fin-auto-focus {
  border-color:
    rgba(40,205,232,.48) !important;

  box-shadow:
    0 0 0 1px rgba(40,205,232,.14),
    0 0 24px rgba(40,205,232,.11),
    0 12px 28px rgba(34,104,147,.06) !important;
}


@media (hover:hover) and (pointer:fine) {

  .fin-operations-tile:hover {
    animation-play-state: paused;

    translate: 0 -6px;
    scale: 1.012;

    background:
      rgba(252,255,255,.96);

    border-color:
      rgba(40,205,232,.63) !important;

    box-shadow:
      0 0 0 1px rgba(40,205,232,.17),
      0 0 28px rgba(40,205,232,.15),
      0 17px 36px rgba(34,104,147,.10) !important;
  }
}


/* ==========================================================================
   KEYFRAMES
   ========================================================================== */

@keyframes fin-live-surface-breathe {
  0%, 100% {
    translate: 0 0;
    box-shadow:
      0 0 0 1px rgba(57,227,165,.18),
      0 0 22px rgba(57,227,165,.10),
      0 10px 27px rgba(34,132,95,.06);
  }

  50% {
    translate: 0 -3px;
    box-shadow:
      0 0 0 1px rgba(57,227,165,.35),
      0 0 39px rgba(57,227,165,.25),
      0 15px 37px rgba(34,132,95,.10);
  }
}


@keyframes fin-green-sweep {
  0%, 56% {
    left: -46%;
    opacity: 0;
  }

  66% {
    opacity: 1;
  }

  90% {
    left: 122%;
    opacity: .70;
  }

  100% {
    left: 122%;
    opacity: 0;
  }
}


@keyframes fin-country-float {
  0%, 100% {
    translate: 0 0;
  }

  50% {
    translate: 0 -5px;
  }
}


@keyframes fin-country-sequential-glow {
  0%, 68%, 100% {
    border-color:
      rgba(116,192,210,.18);

    box-shadow:
      0 9px 23px rgba(33,92,128,.035);
  }

  77% {
    border-color:
      rgba(39,206,237,.62);

    box-shadow:
      0 0 0 1px rgba(39,206,237,.15),
      0 0 29px rgba(39,206,237,.15),
      0 15px 34px rgba(35,103,146,.08);
  }

  87% {
    border-color:
      rgba(78,145,255,.50);

    box-shadow:
      0 0 0 1px rgba(39,206,237,.12),
      0 0 34px rgba(39,206,237,.17),
      0 17px 37px rgba(35,103,146,.09);
  }
}


@keyframes fin-country-sequential-scan {
  0%, 68% {
    left: -48%;
    opacity: 0;
  }

  73% {
    opacity: .9;
  }

  91% {
    left: 126%;
    opacity: .7;
  }

  100% {
    left: 126%;
    opacity: 0;
  }
}


@keyframes fin-live-country-breathe {
  0%,100% {
    translate: 0 0;

    box-shadow:
      0 0 0 1px rgba(57,227,165,.24),
      0 0 29px rgba(57,227,165,.16),
      0 13px 32px rgba(30,137,96,.08);
  }

  50% {
    translate: 0 -5px;

    box-shadow:
      0 0 0 1px rgba(65,244,174,.42),
      0 0 45px rgba(65,244,174,.30),
      0 18px 42px rgba(30,137,96,.13);
  }
}


@keyframes fin-flat-globe-breathe {
  0%,100% {
    scale: 1;
    filter:
      drop-shadow(0 0 15px rgba(36,204,232,.18))
      drop-shadow(0 0 32px rgba(62,131,255,.10));
  }

  50% {
    scale: 1.035;
    filter:
      drop-shadow(0 0 24px rgba(36,204,232,.28))
      drop-shadow(0 0 46px rgba(62,131,255,.17));
  }
}


@keyframes fin-globe-orbit {
  from {
    rotate: 0deg;
  }

  to {
    rotate: 360deg;
  }
}


@keyframes fin-ready-breathe {
  0%,100% {
    scale: 1;
  }

  50% {
    scale: 1.05;
  }
}


@keyframes fin-center-breathe {
  0%,100% {
    scale: 1;
    box-shadow:
      0 0 0 10px rgba(40,205,232,.03),
      0 0 28px rgba(40,205,232,.09);
  }

  50% {
    scale: 1.05;
    box-shadow:
      0 0 0 17px rgba(40,205,232,.025),
      0 0 48px rgba(40,205,232,.20);
  }
}


@keyframes fin-satellite-float {
  0%,100% {
    translate: 0 0;
  }

  50% {
    translate: 0 -7px;
  }
}


@keyframes fin-satellite-neon {
  0%,70%,100% {
    border-color: transparent;
    box-shadow: none;
  }

  80% {
    border-color:
      rgba(40,205,232,.55);

    box-shadow:
      0 0 20px
      rgba(40,205,232,.16);
  }
}


@keyframes fin-method-float {
  0%,100% {
    translate: 0 0;
  }

  50% {
    translate: 0 -5px;
  }
}


@keyframes fin-method-neon {
  0%,70%,100% {
    border-color: transparent;
    box-shadow: none;
  }

  80% {
    border-color:
      rgba(40,205,232,.52);

    box-shadow:
      inset 0 0 15px rgba(40,205,232,.035),
      0 0 25px rgba(40,205,232,.15);
  }
}


@keyframes fin-operations-float {
  0%,100% {
    translate: 0 0;
  }

  50% {
    translate: 0 -3px;
  }
}


/* ==========================================================================
   REDUCED MOTION
   ========================================================================== */

@media (prefers-reduced-motion: reduce) {

  .fin-active-live-surface,
  .fin-active-live-surface::before,
  .fin-jurisdiction-card,
  .fin-jurisdiction-card::after,
  .fin-flat-globe,
  .fin-globe-orbit-layer,
  .fin-global-position-core,
  .fin-orbit-chip,
  .fin-orbit-chip::after,
  .fin-method-card,
  .fin-method-card::before,
  .fin-operations-tile {
    animation: none !important;
  }
}