/* ==========================================================================
   FINANCIVA TAX — B3I
   Geometry correction and hierarchy cleanup
   ========================================================================== */

:root {
  --b3i-dark: #123845;
  --b3i-cyan: #18a9c9;
  --b3i-blue: #438fe6;

  --b3i-green: #3de7a6;
  --b3i-green-border: rgba(61, 231, 166, .72);
  --b3i-green-glow: rgba(61, 231, 166, .20);

  --b3i-border: rgba(102, 191, 213, .19);
  --b3i-ease: cubic-bezier(.22, 1, .36, 1);
}


/* ==========================================================================
   01 — HERO TITLE GEOMETRY
   ========================================================================== */

.hero-copy h1.fin-hero-title-b3h,
.hero-copy h1.fin-hero-title-b3i {
  max-width: 610px !important;

  margin:
    0 0 24px 0 !important;

  padding:
    0 !important;

  font-size:
    clamp(
      58px,
      4.82vw,
      78px
    ) !important;

  line-height:
    .91 !important;

  letter-spacing:
    -.052em !important;

  word-spacing:
    .028em !important;

  text-align:
    left !important;

  color:
    var(--b3i-dark) !important;
}


.fin-hero-title-b3i .fin-title-line {
  display:
    block !important;

  margin:
    0 !important;

  padding:
    0 !important;

  min-height:
    0 !important;

  white-space:
    nowrap;
}


.fin-hero-title-b3i .fin-title-line + .fin-title-line {
  margin-top:
    .015em !important;
}


.fin-hero-title-b3i .fin-title-dark {
  color:
    var(--b3i-dark) !important;

  background:
    none !important;

  -webkit-text-fill-color:
    currentColor !important;
}


.fin-hero-title-b3i .fin-title-accent {
  color:
    var(--b3i-cyan) !important;

  background:
    linear-gradient(
      90deg,
      #159fbe 0%,
      #19b6d1 56%,
      #428cdf 100%
    ) !important;

  -webkit-background-clip:
    text !important;

  background-clip:
    text !important;

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


@media (max-width: 1050px) {

  .hero-copy h1.fin-hero-title-b3i {
    font-size:
      clamp(
        48px,
        7vw,
        68px
      ) !important;
  }

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


/* ==========================================================================
   02 — GLOBAL COVERAGE RECOMPOSITION
   ========================================================================== */

.world-card.glass.fin-coverage-b3i {
  position:
    relative !important;

  overflow:
    hidden !important;

  padding-bottom:
    132px !important;
}


/*
   Remove old floating readiness / 100 Operational implementation.
*/

.fin-readiness-dock,
.fin-b3i-remove-readiness {
  display:
    none !important;
}


/*
   Remove central GLOBAL TAX CORE text while leaving the actual globe intact.
*/

.fin-b3i-hide-core-label {
  display:
    none !important;
}


/*
   The three semantic cards belong at the BOTTOM,
   not over the top of the globe.
*/

.fin-coverage-kpi-row {
  position:
    absolute !important;

  left:
    22px !important;

  right:
    22px !important;

  bottom:
    42px !important;

  z-index:
    20 !important;

  display:
    grid !important;

  grid-template-columns:
    repeat(3, minmax(0, 1fr)) !important;

  gap:
    10px !important;

  margin:
    0 !important;

  padding:
    0 !important;
}


.fin-coverage-kpi-row > * {
  position:
    relative !important;

  inset:
    auto !important;

  width:
    auto !important;

  min-width:
    0 !important;

  min-height:
    58px !important;

  margin:
    0 !important;

  padding:
    12px 14px !important;

  translate:
    none !important;

  transform:
    none !important;

  border-radius:
    15px !important;

  border:
    1px solid
    rgba(105, 193, 214, .18) !important;

  background:
    rgba(251, 255, 255, .87) !important;

  backdrop-filter:
    blur(15px);

  box-shadow:
    0 7px 22px
    rgba(27, 102, 145, .045) !important;
}


/*
   New understated footer status — replaces both:
     - central GLOBAL TAX CORE label
     - floating 100 Operational card
*/

.fin-coverage-core-status {
  position:
    absolute;

  left:
    22px;

  right:
    22px;

  bottom:
    11px;

  z-index:
    21;

  height:
    23px;

  display:
    flex;

  align-items:
    center;

  justify-content:
    center;

  gap:
    8px;

  border-top:
    1px solid
    rgba(65, 190, 211, .14);

  color:
    #59818e;

  font-size:
    10px;

  font-weight:
    700;

  letter-spacing:
    .13em;

  text-transform:
    uppercase;
}


.fin-coverage-core-status::before {
  content:
    "";

  width:
    6px;

  height:
    6px;

  border-radius:
    50%;

  background:
    #43e2ae;

  box-shadow:
    0 0 11px
    rgba(67, 226, 174, .65);

  animation:
    fin-b3i-status-pulse
    2.6s
    ease-in-out
    infinite;
}


/* ==========================================================================
   03 — KPI ROW
   ONLY ACTIVE SYSTEM / INDIA IS GREEN
   ========================================================================== */

.fin-main-kpi-row-b3i {
  margin-bottom:
    2px !important;

  gap:
    10px !important;
}


.fin-main-kpi-row-b3i > * {
  border-radius:
    16px !important;

  overflow:
    hidden !important;
}


/*
   Explicitly remove every previous green treatment from
   Global Position / Ready.
*/

.fin-global-position-reset {
  animation:
    none !important;

  translate:
    none !important;

  transform:
    none !important;

  border:
    1px solid
    rgba(104, 190, 211, .18) !important;

  background:
    rgba(250, 254, 255, .89) !important;

  box-shadow:
    0 8px 22px
    rgba(25, 100, 140, .045) !important;
}


.fin-global-position-reset::before,
.fin-global-position-reset::after {
  content:
    none !important;

  display:
    none !important;
}


.fin-global-position-reset
.fin-live-label {
  color:
    inherit !important;

  background:
    transparent !important;

  border:
    0 !important;

  box-shadow:
    none !important;
}


/*
   ACTIVE SYSTEM / INDIA is the sole persistent green KPI.
*/

.fin-active-system-only {
  position:
    relative !important;

  isolation:
    isolate;

  border:
    1px solid
    var(--b3i-green-border) !important;

  background:
    linear-gradient(
      145deg,
      rgba(255,255,255,.97),
      rgba(235,255,247,.91)
    ) !important;

  box-shadow:
    0 0 0 1px rgba(61,231,166,.14),
    0 0 27px rgba(61,231,166,.15),
    0 10px 28px rgba(31,126,89,.07) !important;

  animation:
    fin-b3i-active-breathe
    3.4s
    ease-in-out
    infinite !important;
}


.fin-active-system-only::before {
  content:
    "";

  position:
    absolute;

  inset:
    0;

  border-radius:
    inherit;

  pointer-events:
    none;

  background:
    radial-gradient(
      circle at 16% 50%,
      rgba(78, 248, 181, .15),
      transparent 46%
    );
}


/* ==========================================================================
   04 — MULTI-JURISDICTION ORBIT
   ========================================================================== */

.fin-multi-orbit-stage {
  position:
    relative !important;

  min-height:
    360px !important;

  overflow:
    visible !important;

  isolation:
    isolate;
}


/*
   GLOBAL POSITION = exact center.
*/

.fin-multi-orbit-stage
.fin-global-position-core {
  position:
    absolute !important;

  left:
    50% !important;

  top:
    50% !important;

  width:
    146px !important;

  height:
    146px !important;

  margin:
    0 !important;

  translate:
    -50% -50% !important;

  transform:
    none !important;

  z-index:
    5 !important;

  display:
    flex !important;

  align-items:
    center !important;

  justify-content:
    center !important;

  border-radius:
    50% !important;

  animation:
    fin-b3i-center-breathe
    4s
    ease-in-out
    infinite !important;
}


/*
   Five satellites positioned evenly around the center.
*/

.fin-multi-orbit-stage
.fin-orbit-chip {
  position:
    absolute !important;

  margin:
    0 !important;

  z-index:
    6 !important;

  min-width:
    88px;

  translate:
    -50% -50% !important;

  transform:
    none !important;

  animation:
    fin-b3i-orbit-float
    5.4s
    ease-in-out
    infinite !important;
}


.fin-multi-orbit-stage
.fin-satellite-residency {
  left:
    22% !important;

  top:
    28% !important;

  animation-delay:
    0s !important;
}


.fin-multi-orbit-stage
.fin-satellite-assets {
  left:
    73% !important;

  top:
    19% !important;

  animation-delay:
    -.9s !important;
}


.fin-multi-orbit-stage
.fin-satellite-treaties {
  left:
    80% !important;

  top:
    48% !important;

  animation-delay:
    -1.8s !important;
}


.fin-multi-orbit-stage
.fin-satellite-ftc {
  left:
    70% !important;

  top:
    78% !important;

  animation-delay:
    -2.7s !important;
}


.fin-multi-orbit-stage
.fin-satellite-fx {
  left:
    24% !important;

  top:
    76% !important;

  animation-delay:
    -3.6s !important;
}


/*
   Soft orbital guide; no gray ovals.
*/

.fin-multi-orbit-stage::before {
  content:
    "";

  position:
    absolute;

  left:
    50%;

  top:
    50%;

  width:
    68%;

  height:
    68%;

  translate:
    -50% -50%;

  border:
    1px solid
    rgba(40, 194, 219, .08);

  border-radius:
    50%;

  pointer-events:
    none;

  z-index:
    1;
}


/* ==========================================================================
   ANIMATIONS
   ========================================================================== */

@keyframes fin-b3i-status-pulse {
  0%,
  100% {
    opacity:
      .68;

    scale:
      .90;
  }

  50% {
    opacity:
      1;

    scale:
      1.16;
  }
}


@keyframes fin-b3i-active-breathe {
  0%,
  100% {
    translate:
      0 0;

    box-shadow:
      0 0 0 1px rgba(61,231,166,.14),
      0 0 23px rgba(61,231,166,.13),
      0 9px 25px rgba(31,126,89,.06);
  }

  50% {
    translate:
      0 -3px;

    box-shadow:
      0 0 0 1px rgba(61,231,166,.28),
      0 0 37px rgba(61,231,166,.24),
      0 14px 32px rgba(31,126,89,.10);
  }
}


@keyframes fin-b3i-center-breathe {
  0%,
  100% {
    scale:
      1;

    box-shadow:
      0 0 0 10px rgba(33,204,231,.025),
      0 0 29px rgba(33,204,231,.11);
  }

  50% {
    scale:
      1.055;

    box-shadow:
      0 0 0 17px rgba(33,204,231,.025),
      0 0 48px rgba(33,204,231,.20);
  }
}


@keyframes fin-b3i-orbit-float {
  0%,
  100% {
    translate:
      -50% -50%;
  }

  50% {
    translate:
      -50% calc(-50% - 7px);
  }
}


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

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

  .fin-active-system-only,
  .fin-coverage-core-status::before,
  .fin-global-position-core,
  .fin-orbit-chip {
    animation:
      none !important;
  }
}