@import url("https://fonts.googleapis.com/css2?family=Afacad:wght@400;500;600;700&display=swap");

:root {
  --bg-dark: #0c312e;
  --bg-mid: #10403b;
  --bg-light: #19675f;
  --neutral: #d1d5db;
  --neutral-strong: #e5e7eb;
  --neutral-soft: rgba(209, 213, 219, 0.18);
  --surface: rgba(255, 255, 255, 0.08);
  --surface-strong: rgba(255, 255, 255, 0.12);
  --line: rgba(255, 255, 255, 0.14);
  --text: #f4f8ff;
  --text-soft: rgba(209, 213, 219, 0.82);
  --highlight: #8fd8b7;
  --highlight-soft: rgba(143, 216, 183, 0.18);
  --green: #2dafa1;
  --shadow-lg: 0 24px 60px rgba(4, 8, 20, 0.36);
  --shadow-md: 0 16px 38px rgba(4, 8, 20, 0.28);
  --radius-xl: 36px;
  --radius-lg: 24px;
  --radius-md: 18px;
  --container: min(1180px, calc(100% - 48px));
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Afacad", Arial, sans-serif;
  position: relative;
  isolation: isolate;
  background: linear-gradient(180deg, #101e22 0%, #12302f 46%, #0e2523 100%);
  color: var(--text);
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(9, 19, 22, 0.18), rgba(16, 30, 34, 0.34)),
    url("../assets/images/fundo.webp") center/cover no-repeat;
  opacity: 0.2;
  filter: saturate(0.72) contrast(1.02);
  pointer-events: none;
  z-index: -2;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(209, 213, 219, 0.028) 1px, transparent 1px),
    linear-gradient(90deg, rgba(209, 213, 219, 0.028) 1px, transparent 1px),
    radial-gradient(circle at 1px 1px, rgba(209, 213, 219, 0.06) 1px, transparent 0);
  background-size: 34px 34px, 34px 34px, 26px 26px;
  opacity: 0.28;
  pointer-events: none;
  z-index: -1;
}

body.menu-open {
  overflow: hidden;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
}

section {
  width: 100%;
}

::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: #07172f;
}

::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.24);
  border-radius: 999px;
}

.cabecalho {
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  width: min(1180px, calc(100% - 32px));
  height: 68px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(25, 103, 95, 0.82);
  backdrop-filter: blur(18px);
  box-shadow: 0 12px 34px rgba(3, 12, 27, 0.18);
  z-index: 1000;
  transition: transform 0.3s ease, background 0.3s ease, box-shadow 0.3s ease;
}

.cabecalho.scrolled {
  background: rgba(16, 64, 59, 0.94);
  box-shadow: 0 16px 44px rgba(2, 10, 23, 0.34);
}

.cabecalho.header-hidden {
  transform: translateX(-50%) translateY(-140%);
}

.headcontent,
.hero-inner,
.content,
.icons-inner,
.team-wrapper,
.ferramenta-container,
.footer-container {
  width: var(--container);
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.headcontent {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 0 24px;
}

.brand {
  flex-shrink: 0;
}

.logoaida {
  width: 118px;
}

.navbar {
  display: flex;
  align-items: center;
  gap: 28px;
}

.ancoranav {
  position: relative;
  font-size: 1.06rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.9);
}

.ancoranav::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 100%;
  height: 2px;
  background: var(--highlight);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.25s ease;
}

.ancoranav:hover::after,
.ancoranav.active::after {
  transform: scaleX(1);
  transform-origin: left;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

.dropdown {
  position: relative;
}

.dropbtn {
  min-height: 40px;
  padding: 8px 14px;
  border: 0;
  background: transparent;
  color: var(--text);
  font-weight: 700;
  cursor: pointer;
}

.dropdown-content {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  min-width: 168px;
  padding: 12px;
  border-radius: 18px;
  border: 1px solid rgba(209, 213, 219, 0.12);
  background: rgba(12, 49, 46, 0.98);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s ease;
  box-shadow: var(--shadow-md);
}

.dropdown:hover .dropdown-content {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropa {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
}

.logout {
  width: 20px;
  filter: invert(1);
}

.desktop-only {
  display: block;
}

.mobile-only,
.mobile-only-link {
  display: none;
}

.menu-toggle {
  width: 42px;
  height: 42px;
  display: none;
  align-items: center;
  justify-content: center;
  position: relative;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 12px;
  background: transparent;
  cursor: pointer;
}

.menu-toggle span {
  position: absolute;
  width: 18px;
  height: 2px;
  background: #fff;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.menu-toggle span:nth-child(1) {
  transform: translateY(-6px);
}

.menu-toggle span:nth-child(3) {
  transform: translateY(6px);
}

.menu-toggle.active span:nth-child(1) {
  transform: rotate(45deg);
}

.menu-toggle.active span:nth-child(2) {
  opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
  transform: rotate(-45deg);
}

.menu-overlay {
  position: fixed;
  inset: 0;
  background: rgba(1, 12, 11, 0.52);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
  z-index: 900;
}

.menu-overlay.active {
  opacity: 1;
  visibility: visible;
}

/* Herdeira de `.parallax-section`. O parallax saiu; o recorte ficou, porque é
   ele que impede os fundos em `background-attachment` de vazarem para a seção
   vizinha. */
.secao-recortada {
  position: relative;
  overflow: clip;
}

.hero {
  min-height: 100vh;
  padding: 132px 0 96px;
  display: flex;
  align-items: center;
  background:
    linear-gradient(to bottom, #0d312d 0%, rgba(13, 49, 45, 0) 16%),
    linear-gradient(to top, #0f3833 0%, rgba(15, 56, 51, 0) 16%),
    linear-gradient(180deg, rgba(15, 31, 34, 0.66), rgba(16, 64, 59, 0.56)),
    radial-gradient(circle at 78% 18%, rgba(209, 213, 219, 0.1), transparent 22%),
    url("../assets/images/fundo2.webp") center/cover no-repeat;
}

.hero::before,
.icons-section::before,
.ferramenta::before {
  content: "";
  position: absolute;
  inset: auto auto 8% -6%;
  width: 240px;
  height: 240px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(45, 175, 161, 0.22), transparent 68%);
  pointer-events: none;
}

.hero::after,
.sobre::after,
.secfunc::after,
.icons-section::after,
.team-section::after,
.ferramenta::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 112px;
  pointer-events: none;
  z-index: 0;
}

.hero::after {
  background: linear-gradient(to bottom, rgba(18, 48, 47, 0) 0%, #113633 100%);
}

.sobre::after {
  background: linear-gradient(to bottom, rgba(17, 54, 51, 0) 0%, #102e2d 100%);
}

.secfunc::after {
  background: linear-gradient(to bottom, rgba(16, 46, 45, 0) 0%, #123534 100%);
}

.icons-section::after {
  background: linear-gradient(to bottom, rgba(18, 53, 52, 0) 0%, #123230 100%);
}

.team-section::after {
  background: linear-gradient(to bottom, rgba(18, 50, 48, 0) 0%, #0e2524 100%);
}

.ferramenta::after {
  display: none;
}

.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 520px);
  min-height: calc(100vh - 228px);
  align-items: center;
  gap: 48px;
}

.hero-copy {
  max-width: 620px;
  margin: 0 auto;
}

.hero-badge,
.section-label,
.func-eyebrow {
  display: inline-flex;
  align-items: center;
  margin-bottom: 18px;
  font-size: 0.86rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--highlight);
}

.hero-badge::before,
.section-label::before,
.func-eyebrow::before {
  content: none;
}

.hero-title,
.section-title,
.title-func,
.titleferr {
  line-height: 0.98;
  letter-spacing: -0.04em;
}

.hero-title {
  font-size: clamp(3rem, 5vw, 5.6rem);
  margin-bottom: 22px;
}

.hero-text,
.section-text,
.subtitle-func,
.subtitleferr,
.sobre-card p,
.card-content p,
.func-card p,
.team-description,
.func-badge p {
  font-size: 1.14rem;
  line-height: 1.58;
  color: var(--neutral);
}

.hero-actions,
.btn-group-ferr {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 32px;
}

.btn-main,
.btn-watch,
.func-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 0 24px;
  border-radius: 999px;
  font-weight: 700;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.btn-main,
.func-cta {
  color: #0f3833;
  background: linear-gradient(135deg, #e5e7eb 0%, #ced9d6 48%, #9fc3b5 100%);
  box-shadow: 0 14px 28px rgba(12, 49, 46, 0.2);
  border: 1px solid rgba(229, 231, 235, 0.16);
}

.btn-watch {
  background: linear-gradient(180deg, rgba(229, 231, 235, 0.1), rgba(209, 213, 219, 0.04));
  border: 1px solid rgba(229, 231, 235, 0.14);
  color: var(--neutral-strong);
}

.btn-main:hover,
.btn-watch:hover,
.func-cta:hover {
  transform: translateY(-2px);
}

.btn-main.is-disabled {
  opacity: 0.62;
  pointer-events: none;
  filter: grayscale(0.15);
}

.hero-visual {
  display: flex;
  justify-content: center;
}

.imghero {
  width: min(100%, 560px);
  height: auto;
  filter: drop-shadow(0 18px 42px rgba(5, 12, 28, 0.34));
}

.sobre {
  padding: 100px 0;
  background:
    url("../assets/images/frame-18.webp") center/cover no-repeat;
  background-attachment: fixed;
}

.sobre .section-label {
  color: #ffffff;
}

.sobre .section-label::before {
  content: none;
}

.content {
  display: grid;
  grid-template-columns: minmax(280px, 440px) minmax(0, 1fr);
  gap: 56px;
  align-items: center;
}

.section-title {
  font-size: clamp(2.2rem, 4vw, 3.9rem);
  margin-bottom: 18px;
}

.cards-sobre,
.cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-top: 32px;
}

.sobre-card{
  padding: 28px;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(229, 231, 235, 0.12);
  background:
    linear-gradient(180deg, rgba(229, 231, 235, 0.12), rgba(209, 213, 219, 0.04)),
    linear-gradient(135deg, rgba(12, 49, 46, 0.18), rgba(16, 64, 59, 0.08));
  box-shadow: var(--shadow-md);
  backdrop-filter: blur(12px);
  transition: transform 0.32s ease, box-shadow 0.32s ease, border-color 0.32s ease;
  will-change: transform, opacity;
}
.card-content {
  padding: 28px;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(229, 231, 235, 0.12);
  background:
    linear-gradient(180deg, rgba(229, 231, 235, 0.12), rgba(209, 213, 219, 0.04)),
    linear-gradient(135deg, rgba(12, 49, 46, 0.18), rgba(16, 64, 59, 0.08));
  box-shadow: var(--shadow-md);
  backdrop-filter: blur(12px);
  transition: transform 0.32s ease, box-shadow 0.32s ease, border-color 0.32s ease;
  will-change: transform, opacity;
  width: 280px;
  
}
.card-content2{
  padding: 28px;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(229, 231, 235, 0.12);
  background:
    linear-gradient(180deg, rgba(229, 231, 235, 0.12), rgba(209, 213, 219, 0.04)),
    linear-gradient(135deg, rgba(12, 49, 46, 0.18), rgba(16, 64, 59, 0.08));
  box-shadow: var(--shadow-md);
  backdrop-filter: blur(12px);
  transition: transform 0.32s ease, box-shadow 0.32s ease, border-color 0.32s ease;
  will-change: transform, opacity;
  width: 280px;
  margin-left: 55px;
}

.imgsobre,
.imgtech,
.func-icon {
  width: 34px;
  height: 34px;
  margin-bottom: 18px;
  filter: invert(1);
}

.sobre-card h3,
.card-content h3,
.func-card h3 {
  font-size: 1.52rem;
  margin-bottom: 10px;
}



.secfunc {
  padding: 100px 0;
  background:
    linear-gradient(to bottom, #0d312d 0%, rgba(13, 49, 45, 0) 16%),
    linear-gradient(to top, #0f3833 0%, rgba(15, 56, 51, 0) 16%),
    linear-gradient(180deg, rgba(15, 31, 34, 0.66), rgba(16, 64, 59, 0.56)),
    radial-gradient(circle at 78% 18%, rgba(209, 213, 219, 0.1), transparent 22%),
    url("../assets/images/fundo2.webp") center/cover no-repeat;
}

.func-shell {
  width: var(--container);
  margin: 0 auto;
  padding: 36px;
  border-radius: var(--radius-xl);
  border: 1px solid rgba(255, 255, 255, 0.08);
  background:
    linear-gradient(180deg, rgba(15, 56, 51, 0.98), rgba(12, 49, 46, 0.98)),
    linear-gradient(90deg, rgba(143, 216, 183, 0.08), rgba(255, 255, 255, 0.02));
  box-shadow: var(--shadow-lg);
}

.func-topline {
  width: 100%;
  height: 1px;
  margin-bottom: 28px;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0), rgba(143, 216, 183, 0.6), rgba(255, 255, 255, 0));
}

.func-header {
  display: grid;
  grid-template-columns: minmax(0, 520px) minmax(0, 1fr);
  align-items: end;
  gap: 28px;
  margin-bottom: 36px;
}

.title-func {
  font-size: clamp(2.4rem, 4vw, 4rem);
}

.func-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.func-card {
  min-height: 270px;
  padding: 28px 24px;
  background:
    linear-gradient(180deg, rgba(229, 231, 235, 0.08), rgba(209, 213, 219, 0.02)),
    linear-gradient(135deg, rgba(12, 49, 46, 0.14), rgba(16, 64, 59, 0.08));
  transition: transform 0.32s ease, box-shadow 0.32s ease, background 0.32s ease;
  will-change: transform, opacity;
}

.func-card:not(:last-child) {
  border-right: 1px solid var(--line);
}

.func-index {
  display: inline-block;
  margin-bottom: 26px;
  font-size: 0.92rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  color: rgba(209, 213, 219, 0.7);
}

.func-footer {
  margin-top: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.func-badge {
  display: flex;
  align-items: center;
  gap: 14px;
}

.func-badge img {
  width: 52px;
  padding: 10px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.06);
}

.icons-section {
  padding: 100px 0;
  background:
    linear-gradient(to bottom, #0d312d 0%, rgba(13, 49, 45, 0) 16%),
    linear-gradient(to top, #0f3833 0%, rgba(15, 56, 51, 0) 16%),
    linear-gradient(180deg, rgba(15, 31, 34, 0.66), rgba(16, 64, 59, 0.56)),
    radial-gradient(circle at 78% 18%, rgba(209, 213, 219, 0.1), transparent 22%),
    url("../assets/images/frame-18.webp") center/cover no-repeat,
    url("../assets/images/fundo.webp") center/cover no-repeat;
  background-attachment: fixed;
}

.icons-inner {
  display: flex;
  flex-direction: column;
  gap: 42px;
}

.section-heading.center {
  text-align: center;
  will-change: transform, opacity;
  position: relative;
  z-index: 1;
}

.tech-layout {
  display: grid;
  grid-template-columns: minmax(0, 520px) minmax(280px, 420px);
  justify-content: space-between;
  align-items: center;
  gap: 32px;
  will-change: transform, opacity;
}

.icons-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.icon-wrapper {
  position: relative;
  overflow: hidden;
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 22px;
  border: 1px solid rgba(229, 231, 235, 0.12);
  background: linear-gradient(180deg, rgba(229, 231, 235, 0.1), rgba(209, 213, 219, 0.04));
  opacity: 0.76;
  transition: transform 0.3s ease, background 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease, opacity 0.3s ease;
  will-change: transform, opacity;
}

.sobre-card:hover,
.card-content:hover,
.team-mobile-card:hover {
  transform: translateY(-6px);
  background:
    linear-gradient(180deg, rgba(209, 213, 219, 0.14), rgba(209, 213, 219, 0.06)),
    linear-gradient(135deg, rgba(12, 49, 46, 0.18), rgba(16, 64, 59, 0.1));
  box-shadow: 0 22px 38px rgba(4, 8, 20, 0.28);
  border-color: rgba(229, 231, 235, 0.22);
}

.func-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 34px rgba(4, 8, 20, 0.28);
  background:
    linear-gradient(180deg, rgba(209, 213, 219, 0.14), rgba(209, 213, 219, 0.06)),
    linear-gradient(135deg, rgba(12, 49, 46, 0.18), rgba(16, 64, 59, 0.1));
}

.icon-wrapper img {
  width: 58%;
  height: 58%;
  object-fit: contain;
  filter: invert(1);
  opacity: 0.84;
  transition: transform 0.3s ease, filter 0.3s ease, opacity 0.3s ease;
}

.icon-wrapper::after {
  content: "";
  position: absolute;
  inset: 14%;
  border-radius: 18px;
  background: radial-gradient(circle, rgba(209, 213, 219, 0.14), transparent 72%);
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.icon-wrapper.active {
  opacity: 1;
  border-color: rgba(229, 231, 235, 0.28);
  background:
    linear-gradient(180deg, rgba(229, 231, 235, 0.22), rgba(209, 213, 219, 0.1)),
    linear-gradient(135deg, rgba(143, 216, 183, 0.18), rgba(12, 49, 46, 0.02));
  transform: translateY(-8px) scale(1.06);
  box-shadow: 0 18px 34px rgba(4, 8, 20, 0.28), 0 0 0 1px rgba(229, 231, 235, 0.08) inset;
}

.icon-wrapper.active::after {
  opacity: 1;
}

.icon-wrapper.active img {
  opacity: 1;
  transform: scale(1.06);
  filter: invert(1) drop-shadow(0 0 12px rgba(229, 231, 235, 0.22));
}

.icon-wrapper img.icon-white {
  filter: none;
}

.icon-wrapper.active img.icon-white {
  filter: drop-shadow(0 0 12px rgba(229, 231, 235, 0.22));
}

.team-section {
  min-height: 100vh;
  padding: 100px 0;
  display: flex;
  align-items: center;
  background:
    linear-gradient(to top, #0c312e 0%, rgba(12, 49, 46, 0) 16%),
    linear-gradient(180deg, rgba(14, 38, 40, 0.58), rgba(12, 49, 46, 0.76)),
    radial-gradient(circle at 72% 22%, rgba(209, 213, 219, 0.08), transparent 24%),
    url("../assets/images/bg.webp") center/cover no-repeat,
    url("../assets/images/fundo2.webp") center/cover no-repeat;
  background-attachment: fixed;
}

.team-wrapper {
  display: grid;
  grid-template-columns: auto minmax(260px, 360px) minmax(0, 1fr);
  gap: 32px;
  align-items: center;
  min-height: calc(100vh - 200px);
}

.team-icons {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.icon {
  font-size: 1.55rem;
  color: rgba(255, 255, 255, 0.36);
  transition: transform 0.3s ease, color 0.3s ease;
}

.icon.active {
  color: var(--highlight);
  transform: scale(1.14);
}

.team-photo {
  background: none;
  box-shadow: none;
}

.team-info {
  position: relative;
}

.team-big-name {
  margin-bottom: 18px;
  font-size: clamp(1rem, 8vw, 3rem);
  line-height: 0.9;
  color: #2DAFA1;
}

.fototeam {
  width: 100%;
  height: auto;
}

.team-description {
  font-size: 1.24rem;
  line-height: 1.7;
}

.team-mobile {
  display: none;
  width: var(--container);
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.team-mobile-header {
  margin-bottom: 24px;
}

.team-mobile-carousel {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(280px, 84%);
  gap: 16px;
  overflow-x: auto;
  padding-bottom: 14px;
  scroll-snap-type: x mandatory;
  scrollbar-width: thin;
}

.team-mobile-card {
  scroll-snap-align: start;
  overflow: hidden;
  border-radius: 28px;
  border: 1px solid rgba(229, 231, 235, 0.12);
  background:
    linear-gradient(180deg, rgba(229, 231, 235, 0.12), rgba(209, 213, 219, 0.04)),
    linear-gradient(135deg, rgba(12, 49, 46, 0.14), rgba(16, 64, 59, 0.08));
  box-shadow: var(--shadow-md);
  backdrop-filter: blur(14px);
  transition: transform 0.32s ease, box-shadow 0.32s ease, border-color 0.32s ease;
  will-change: transform, opacity;
}

.team-mobile-card img {
  width: 100%;
  height: 320px;
  object-fit: contain;
  object-position: center top;
  padding: 16px 16px 0;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.02));
}

.team-mobile-card-body {
  padding: 22px 20px 24px;
}

.team-mobile-card-body h3 {
  font-size: 1.7rem;
  margin-bottom: 8px;
}

.team-mobile-card-body p {
  color: var(--text-soft);
  line-height: 1.6;
  font-size: 1.08rem;
}

.ferramenta {
  padding: 100px 0;
  background:
    url("../assets/images/frame-18.webp") center/cover no-repeat,
    url("../assets/images/fundo.webp") center/cover no-repeat;
}

.ferramenta-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  text-align: center;
}

.new-feature-badge {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 10px 18px;
  border-radius: 999px;
  border: 1.5px solid rgba(255, 255, 255, 0.14);
  background: linear-gradient(180deg, rgba(135, 136, 138, 0.1), rgba(209, 213, 219, 0.04));
}

.badge-tag {
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--green);
  /* Texto escuro sobre o verde-menta: em branco o contraste ficava em 2,5:1,
     abaixo do minimo 4,5:1 da WCAG AA para texto deste tamanho. */
  color: var(--aida-text-invert, #0f3833);
  font-size: 0.82rem;
  font-weight: 700;
}

.badge-text {
  color: #fff;
}

.titleferr {
  font-size: clamp(2.6rem, 4.6vw, 4.8rem);
}

.subtitleferr {
  max-width: 720px;
  font-size: 25px;
}

.footer {
  padding: 56px 0 30px;
  background: #10403b;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-container {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 32px;
}

.foot-column {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.logo-footer {
  width: 180px;
}

.foot-contact {
  color: var(--neutral);
  font-size: 0.98rem;
}

.foot-title {
  font-size: 1.2rem;
  font-weight: 700;
}

.foot-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
  color: var(--neutral);
}

.foot-list a {
  color: var(--neutral);
}

.footer-rights {
  width: var(--container);
  margin: 32px auto 0;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  text-align: center;
  color: rgba(209, 213, 219, 0.7);
}

@media (max-width: 1100px) {
  .hero-inner,
  .content,
  .tech-layout,
  .team-wrapper,
  .func-header {
    grid-template-columns: 1fr;
  }

  .cards {
    grid-template-columns: 1fr 1fr;
    
  }

  .team-icons {
    flex-direction: row;
    justify-content: center;
  }

  .team-wrapper {
    min-height: auto;
  }
}

@media (max-width: 900px) {
  .cabecalho {
    top: 12px;
    width: calc(100% - 24px);
  }

  .headcontent {
    padding: 0 18px;
  }

  .menu-toggle {
    display: inline-flex;
  }

  .desktop-only {
    display: none;
  }

  .mobile-only,
  .mobile-only-link {
    display: block;
  }

  .navbar {
    position: fixed;
    top: 0;
    right: 0;
    width: min(320px, 84vw);
    height: 100vh;
    padding: 96px 24px 24px;
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
    background: rgba(16, 64, 59, 0.98);
    transform: translateX(100%);
    visibility: hidden;
    /* A sombra fica só no menu aberto: fechado, ela vazava 60 px para dentro da tela
       e desenhava uma faixa escura na borda direita do celular. */
    transition: transform 0.25s ease, visibility 0s linear 0.25s;
    z-index: 950;
  }

  .navbar.active {
    transform: translateX(0);
    visibility: visible;
    box-shadow: -24px 0 60px rgba(0, 0, 0, 0.3);
    transition: transform 0.25s ease, visibility 0s;
  }

  .dropdown-content {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    padding: 0;
    margin-top: 8px;
    border: 0;
    background: transparent;
    box-shadow: none;
  }

  .dropbtn {
    padding-left: 0;
  }

  .hero {
    padding-top: 116px;
  }

  .cards-sobre,
  .cards,
  .footer-container {
    grid-template-columns: 1fr;
  }

  .sobre,
  .icons-section,
  .team-section {
    background-attachment: scroll;
  }

  body::before,
  body::after {
    position: absolute;
  }

  .func-grid {
    grid-template-columns: 1fr 1fr;
  }

  .func-card {
    min-height: 230px;
  }

  .func-card:nth-child(2) {
    border-right: 0;
  }

  .func-card:nth-child(-n + 2) {
    border-bottom: 1px solid var(--line);
  }

  .func-footer {
    flex-direction: column;
    align-items: flex-start;
  }

  .team-section {
    min-height: auto;
    display: block;
  }

  .team-wrapper {
    display: none;
  }

  .team-mobile {
    display: block;
  }
}

@media (max-width: 640px) {
  :root {
    --container: calc(100% - 32px);
  }

  .hero-title {
    font-size: 2.7rem;
  }

  .hero-inner {
    min-height: auto;
  }

  .section-title,
  .title-func,
  .titleferr {
    font-size: 2.2rem;
  }

  .hero-text,
  .section-text,
  .subtitle-func,
  .subtitleferr,
  .sobre-card p,
  .card-content p,
  .func-card p,
  .team-description {
    font-size: 1rem;
  }

  .sobre-card,
  .card-content,
  .func-shell {
    padding: 24px 20px;
  }

  .func-grid {
    grid-template-columns: 1fr;
  }

  .func-card {
    min-height: auto;
    border-right: 0;
  }

  .func-card:not(:last-child) {
    border-bottom: 1px solid var(--line);
  }

  .icons-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .team-mobile-carousel {
    grid-auto-columns: 88%;
  }

  .team-mobile-card img {
    height: 280px;
  }
  .fototeam {
    border-radius: 32px;
  }



  .btn-main,
  .btn-watch,
  .func-cta {
    width: 100%;
  }

  .hero-actions,
  .btn-group-ferr {
    width: 100%;
  }
}

.system-notice {
  width: min(1180px, calc(100% - 40px));
  position: fixed;
  top: 108px;
  left: 50%;
  transform: translateX(-50%);
  margin: 0;
  padding: 16px 20px;
  border: 1px solid rgba(143, 216, 183, 0.28);
  border-radius: 24px;
  background: rgba(7, 24, 22, 0.72);
  box-shadow: 0 18px 42px rgba(4, 8, 20, 0.24);
  pointer-events: none;
  z-index: 950;
}

.system-notice-inner {
  display: grid;
  gap: 8px;
}

.system-notice-kicker {
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-size: 0.78rem;
  color: rgba(143, 216, 183, 0.86);
}

.system-notice p {
  margin: 0;
  color: rgba(244, 248, 255, 0.88);
  font-size: 1rem;
  line-height: 1.6;
}

@media (max-width: 900px) {
  .system-notice {
    top: 92px;
    width: min(1180px, calc(100% - 24px));
  }
}

/* --- Overlay Login Unlogged User --- */
body.locked-scroll {
  overflow: hidden !important;
  height: 100vh !important;
}

.login-overlay {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  pointer-events: none;
}

.login-overlay.hidden {
  display: none;
}

.login-overlay-backdrop {
  position: absolute;
  inset: 0;
  background-color: transparent;
  pointer-events: auto;
  transition: background-color 0.4s ease, backdrop-filter 0.4s ease;
}

.login-overlay-card {
  position: relative;
  width: 100%;
  max-width: 500px;
  background: rgba(12, 49, 46, 0.98);
  border: 1px solid rgba(229, 231, 235, 0.12);
  border-radius: 24px 24px 0 0;
  padding: 40px;
  text-align: center;
  box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.5);
  transform: translateY(150vh);
  pointer-events: auto;
  margin-bottom: 0;
  z-index: 2001;
  transition: transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.login-overlay-card h2 {
  font-size: 2rem;
  margin-bottom: 16px;
  color: var(--highlight);
}

.login-overlay-card p {
  font-size: 1.1rem;
  margin-bottom: 24px;
  color: var(--neutral);
}

/* As imagens ganharam width/height no HTML (reserva o espaço e evita o
   "pulo" do layout); sem isto o atributo height esticaria a ilustração. */
.sobre-visual img {
  height: auto;
}

/* A grade de tecnologias entra deslizando 34 px da direita (script-apresentacao.js):
   até ser revelada, ela ficava fora da página e criava rolagem horizontal em ~1024 px. */
.icons-section {
  overflow-x: clip;
}
