body[data-page="ferramentas"] {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

body[data-page="ferramentas"] main {
  flex: 1;
  display: flex;
  align-items: stretch;
  position: relative;
}

body[data-page="ferramentas"] .site-footer {
  margin-top: 0;
}

.ferramentas-symbol-corners {
  position: fixed;
  inset: 64px 0 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

.ferramentas-symbol {
  --symbol-size: clamp(3.6rem, 7vw, 6.8rem);
  --symbol-opacity: 0.68;
  --symbol-rotation: 0deg;
  --symbol-x-a: 0.32rem;
  --symbol-y-a: -0.44rem;
  --symbol-r-a: -4deg;
  --symbol-x-b: -0.28rem;
  --symbol-y-b: 0.36rem;
  --symbol-r-b: 3deg;
  --symbol-duration: 12.8s;
  --symbol-delay: 0s;
  position: absolute;
  width: var(--symbol-size);
  height: var(--symbol-size);
  object-fit: contain;
  opacity: var(--symbol-opacity);
  transform: translate3d(0, 0, 0) rotate(var(--symbol-rotation));
  transform-origin: center;
  animation: ferramentas-symbol-float var(--symbol-duration) ease-in-out infinite;
  animation-delay: var(--symbol-delay);
  will-change: transform;
}

.ferramentas-symbol-top-left-a {
  --symbol-size: clamp(4.3rem, 7.4vw, 7.2rem);
  --symbol-rotation: -13deg;
  --symbol-duration: 12s;
  top: 7%;
  left: clamp(0.2rem, 4vw, 3.2rem);
}

.ferramentas-symbol-top-left-b {
  --symbol-size: clamp(2.9rem, 5vw, 4.7rem);
  --symbol-opacity: 0.54;
  --symbol-rotation: 14deg;
  --symbol-duration: 14.2s;
  --symbol-delay: -4.2s;
  top: 20%;
  left: clamp(4.8rem, 11vw, 9rem);
}

.ferramentas-symbol-top-right-a {
  --symbol-size: clamp(4rem, 7vw, 6.9rem);
  --symbol-rotation: 12deg;
  --symbol-duration: 13.6s;
  --symbol-delay: -2.1s;
  top: 8%;
  right: clamp(0.4rem, 4.4vw, 3.5rem);
}

.ferramentas-symbol-top-right-b {
  --symbol-size: clamp(2.8rem, 4.7vw, 4.5rem);
  --symbol-opacity: 0.56;
  --symbol-rotation: -10deg;
  --symbol-duration: 11.6s;
  --symbol-delay: -5.6s;
  top: 24%;
  right: clamp(5.3rem, 11vw, 9.4rem);
}

.ferramentas-symbol-bottom-left {
  --symbol-size: clamp(3.8rem, 6.4vw, 6.2rem);
  --symbol-opacity: 0.58;
  --symbol-rotation: 10deg;
  --symbol-duration: 15.4s;
  --symbol-delay: -7s;
  left: clamp(0.8rem, 5vw, 4rem);
  bottom: 8%;
}

.ferramentas-symbol-bottom-right {
  --symbol-size: clamp(3.7rem, 6.2vw, 6rem);
  --symbol-opacity: 0.62;
  --symbol-rotation: -12deg;
  --symbol-duration: 12.4s;
  --symbol-delay: -3.4s;
  right: clamp(1rem, 5vw, 4.4rem);
  bottom: 7%;
}

.discipline-base-copy {
  position: absolute;
  left: 50%;
  bottom: 0.42rem;
  transform: translateX(-50%);
  width: min(94%, 900px);
  margin: 0;
  text-align: center;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: rgba(201, 220, 247, 0.84);
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.38);
  z-index: 3;
}

.discipline-menu.section {
  width: 100%;
  flex: 1;
  display: flex;
  padding: clamp(2rem, 5vh, 3.4rem) 0 clamp(3rem, 6vh, 4.4rem);
}

.discipline-menu.section > .container {
  display: grid;
  grid-template-rows: auto 1fr auto;
  align-items: center;
  min-height: 100%;
}

.discipline-grid {
  position: relative;
  z-index: 1;
}

.discipline-title {
  position: relative;
  z-index: 1;
  align-self: start;
  margin: 0 auto;
  width: min(100%, 760px);
  text-align: center;
  font-size: clamp(1.45rem, 2.7vw, 2.2rem);
  line-height: 1.08;
  color: #eaf6ff;
  text-shadow:
    0 2px 16px rgba(0, 0, 0, 0.42),
    0 0 18px rgba(0, 229, 255, 0.25);
}

.discipline-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 290px));
  justify-content: center;
  gap: 1.2rem;
  align-self: center;
}

.discipline-coming-soon {
  position: relative;
  z-index: 1;
  align-self: end;
  margin: 0 auto;
  width: min(100%, 760px);
  padding: 1.05rem 1.15rem;
  text-align: center;
  font-size: clamp(1rem, 1.75vw, 1.12rem);
  font-weight: 800;
  line-height: 1.45;
  color: #f4fcff;
  border: 1px solid rgba(126, 230, 255, 0.9);
  border-radius: 16px;
  background: linear-gradient(132deg, rgba(12, 39, 88, 0.9), rgba(8, 109, 157, 0.86));
  box-shadow:
    0 14px 30px rgba(2, 8, 22, 0.35),
    inset 0 0 0 1px rgba(255, 255, 255, 0.22),
    0 0 28px rgba(0, 229, 255, 0.34);
}

.discipline-coming-soon::before {
  content: "Novidades chegando";
  position: absolute;
  top: -0.72rem;
  left: 50%;
  transform: translateX(-50%);
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #06203d;
  background: linear-gradient(135deg, #9cf5ff, #47ddff);
  box-shadow: 0 6px 16px rgba(0, 229, 255, 0.38);
}

.discipline-link {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 0.82rem;
  min-height: 108px;
  overflow: hidden;
  text-align: center;
  padding: 1.05rem 1.02rem;
  border-radius: 22px;
  border: 1px solid rgba(174, 232, 255, 0.56);
  font-weight: 800;
  letter-spacing: 0.01em;
  color: #f4f9ff;
  background:
    radial-gradient(circle at 14% 0%, rgba(255, 255, 255, 0.28), transparent 32%),
    linear-gradient(135deg, rgba(18, 132, 255, 0.82), rgba(0, 229, 255, 0.68));
  box-shadow:
    0 14px 28px rgba(2, 7, 20, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.28);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease, filter 0.2s ease;
}

.discipline-link::before,
.discipline-link::after {
  content: "";
  position: absolute;
  border-radius: 999px;
  pointer-events: none;
}

.discipline-link::before {
  width: 5.6rem;
  height: 5.6rem;
  top: -3rem;
  right: -2.1rem;
  background: rgba(255, 255, 255, 0.18);
}

.discipline-link::after {
  width: 0.62rem;
  height: 0.62rem;
  right: 1.12rem;
  bottom: 1rem;
  background: #dfffff;
  box-shadow:
    -1.45rem -0.8rem 0 rgba(255, 255, 255, 0.34),
    -2.35rem 0.55rem 0 rgba(255, 217, 120, 0.76);
}

.discipline-link-icon {
  position: relative;
  z-index: 1;
  width: 2.72rem;
  height: 2.72rem;
  border-radius: 999px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(214, 241, 255, 0.65);
  background: linear-gradient(145deg, rgba(8, 32, 70, 0.5), rgba(21, 64, 120, 0.62));
  box-shadow:
    0 6px 14px rgba(2, 8, 25, 0.35),
    inset 0 0 14px rgba(0, 229, 255, 0.2);
}

.discipline-link-icon i {
  font-size: 1.14rem;
  color: #dfffff;
  text-shadow: 0 0 10px rgba(0, 229, 255, 0.4);
}

.discipline-link-name {
  position: relative;
  z-index: 1;
  text-align: left;
  font-size: clamp(1.42rem, 2vw, 1.62rem);
  line-height: 1.12;
  color: #f8fdff;
  text-shadow:
    0 1px 0 rgba(0, 0, 0, 0.35),
    0 2px 8px rgba(0, 0, 0, 0.45),
    0 0 1px rgba(220, 248, 255, 0.75);
}

.discipline-link:hover,
.discipline-link:focus-visible {
  transform: translateY(-4px);
  border-color: rgba(0, 229, 255, 0.95);
  box-shadow:
    0 16px 24px rgba(4, 10, 22, 0.38),
    0 0 0 1px rgba(0, 229, 255, 0.58) inset,
    0 0 20px rgba(0, 229, 255, 0.7),
    0 0 34px rgba(52, 146, 255, 0.4);
  filter: saturate(1.18);
}

.discipline-link:focus-visible {
  outline: 2px solid rgba(0, 229, 255, 0.92);
  outline-offset: 2px;
}

@keyframes ferramentas-symbol-float {
  0%,
  100% {
    transform: translate3d(0, 0, 0) rotate(var(--symbol-rotation));
  }
  32% {
    transform: translate3d(var(--symbol-x-a), var(--symbol-y-a), 0) rotate(calc(var(--symbol-rotation) + var(--symbol-r-a)));
  }
  68% {
    transform: translate3d(var(--symbol-x-b), var(--symbol-y-b), 0) rotate(calc(var(--symbol-rotation) + var(--symbol-r-b)));
  }
}

@media (max-width: 980px) {
  .discipline-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  body[data-page="ferramentas"] {
    position: relative;
    isolation: isolate;
    min-height: 100svh;
  }

  body[data-page="ferramentas"] main {
    align-items: stretch;
    min-height: 100svh;
  }

  body[data-page="ferramentas"].has-mobile-bottom-bg .mobile-bottom-bg {
    display: none;
  }

  body[data-page="ferramentas"].has-mobile-bottom-bg .mobile-bottom-bg-frame {
    display: none;
  }

  .discipline-menu.section {
    padding: 4.75rem 0 1.95rem;
  }

  .discipline-menu.section > .container {
    min-height: calc(100svh - 6.7rem);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: clamp(0.85rem, 3.2vh, 1.35rem);
  }

  .ferramentas-symbol-corners {
    inset: 0;
  }

  .ferramentas-symbol {
    --symbol-size: clamp(3.6rem, 18vw, 6.2rem);
    --symbol-opacity: 0.42;
  }

  .ferramentas-symbol-top-left-b,
  .ferramentas-symbol-top-right-b {
    display: none;
  }

  .ferramentas-symbol-bottom-left {
    left: -1rem;
    bottom: 13%;
  }

  .ferramentas-symbol-bottom-right {
    right: -1rem;
    bottom: 12%;
  }

  .discipline-title {
    width: min(100%, 20.5rem);
    margin: 0.45rem auto 0;
    padding: 0;
    font-size: clamp(1.16rem, 5.6vw, 1.52rem);
    line-height: 1.18;
    text-wrap: balance;
    color: #f6fbff;
    text-shadow:
      0 2px 14px rgba(0, 0, 0, 0.5),
      0 0 20px rgba(0, 229, 255, 0.24);
  }

  .discipline-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 1rem;
    align-self: stretch;
    width: min(100%, 22rem);
    margin: 0 auto;
  }

  .discipline-link {
    display: grid;
    grid-template-columns: auto 1fr;
    place-items: initial;
    justify-items: stretch;
    align-items: center;
    text-align: left;
    min-height: 66px;
    width: 100%;
    gap: 0.72rem;
    padding: 0.62rem 0.78rem;
    border: 1px solid rgba(166, 224, 255, 0.48);
    border-radius: 8px;
    background:
      radial-gradient(circle at 0% 0%, rgba(255, 255, 255, 0.22), transparent 36%),
      linear-gradient(135deg, rgba(18, 132, 255, 0.74), rgba(0, 229, 255, 0.58));
    box-shadow:
      0 9px 18px rgba(1, 8, 20, 0.28),
      0 0 0 1px rgba(255, 255, 255, 0.16) inset;
    color: #f4faff;
    text-decoration: none;
    transition: transform 0.2s ease, filter 0.2s ease, box-shadow 0.2s ease;
  }

  .discipline-link::before {
    content: none;
    display: none;
  }

  .discipline-link::after {
    content: none;
    display: none;
  }

  .discipline-link-icon {
    position: relative;
    z-index: 1;
    display: grid;
    place-items: center;
    width: 2.35rem;
    height: 2.35rem;
    border-radius: 8px;
    border: 1px solid rgba(214, 241, 255, 0.52);
    background: linear-gradient(145deg, rgba(8, 32, 70, 0.5), rgba(21, 64, 120, 0.62));
    box-shadow:
      0 5px 12px rgba(2, 8, 25, 0.28),
      inset 0 0 12px rgba(0, 229, 255, 0.18);
  }

  .discipline-link-icon i {
    font-size: 1rem;
    color: #dfffff;
  }

  .discipline-link-name {
    text-align: left;
    max-width: 100%;
    font-size: clamp(0.94rem, 4.05vw, 1.08rem);
    font-weight: 800;
    line-height: 1.18;
    width: auto;
    display: block;
    justify-self: stretch;
    align-self: center;
    margin: 0;
    color: #f8fdff;
    text-shadow:
      0 1px 0 rgba(0, 0, 0, 0.35),
      0 2px 8px rgba(0, 0, 0, 0.45),
      0 0 1px rgba(220, 248, 255, 0.75);
  }

  .discipline-link:hover,
  .discipline-link:focus-visible {
    transform: translateY(-2px);
    color: #ffffff;
    box-shadow:
      0 14px 24px rgba(1, 10, 24, 0.4),
      0 0 0 1px rgba(120, 231, 255, 0.68) inset,
      0 0 16px rgba(0, 229, 255, 0.62);
    filter: saturate(1.14);
  }

  .discipline-base-copy {
    bottom: 0.24rem;
    width: min(96%, 420px);
    font-size: 0.52rem;
    line-height: 1.25;
  }

  .discipline-coming-soon {
    width: min(100%, 22rem);
    margin: 0 auto;
    padding: 0.72rem 0.78rem;
    border-radius: 8px;
    font-size: clamp(0.76rem, 3.25vw, 0.88rem);
    line-height: 1.32;
  }

  .discipline-coming-soon::before {
    top: -0.58rem;
    padding: 0.16rem 0.48rem;
    font-size: 0.56rem;
  }

}

@media (max-width: 440px) {
  .discipline-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 0.9rem;
  }

  .discipline-link {
    min-height: 62px;
    padding: 0.56rem 0.68rem;
  }

  .discipline-link-name {
    font-size: clamp(0.88rem, 4.25vw, 1rem);
  }
}
