/* ─── Background — réplica fiel das ellipses do V1 (1px = 1/1920 × 100vw) ── */
.bg-glow {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: -1;
  overflow: hidden;
}
.bg-glow > div { position: absolute; border-radius: 50%; }

.bg-e6 {
  width: 167vw; height: 77vw;
  top: 2.8vw;  left: -102vw;
  transform: rotate(6.2deg);
  background: radial-gradient(50% 50% at 50% 50%, rgba(116,0,0,.36) 0%, transparent 100%);
}
.bg-e2 {
  width: 205vw; height: 73vw;
  top: 14.2vw; left: -109vw;
  transform: rotate(-23.2deg);
  background: radial-gradient(50% 50% at 50% 50%, rgba(242,14,9,.34) 0%, transparent 100%);
}
.bg-e {
  width: 167vw; height: 73vw;
  top: 21.7vw; left: 22.7vw;
  transform: rotate(6.2deg);
  background: radial-gradient(50% 50% at 50% 50%, rgba(242,14,9,.34) 0%, transparent 100%);
}
.bg-e4 {
  width: 167vw; height: 77vw;
  top: 2.8vw;  left: 27.9vw;
  transform: rotate(6.2deg);
  background: radial-gradient(50% 50% at 50% 50%, #fd7222 0%, transparent 100%);
}

/* ─── Nav — largura extra pra caber o widget de usuário ──────── */
.dash-nav { grid-template-columns: 235px minmax(0, 1fr) auto; }

.dash-user {
  display: flex;
  align-items: center;
  gap: 14px;
  justify-self: end;
}

.dash-notification {
  position: relative;
  display: flex;
  width: 23px;
  flex-shrink: 0;
}
.dash-notification img { width: 100%; height: 27px; }
.dash-notification-dot {
  position: absolute;
  top: -2px;
  right: -2px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #fc5a5a;
}

.dash-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--orange);
  flex-shrink: 0;
}

.dash-user-info {
  display: flex;
  flex-direction: column;
  line-height: 1.3;
  white-space: nowrap;
  cursor: pointer;
}
.dash-user-name {
  font-family: var(--font-poppins);
  font-weight: 600;
  font-size: 14px;
  color: #fafafb;
}
.dash-user-role {
  font-family: 'Roboto', sans-serif;
  font-size: 12px;
  color: #696974;
}

.dash-dropdown { width: 12px; height: 7.5px; flex-shrink: 0; }

.dash-user-menu { position: relative; }
.dash-dropdown-toggle {
  display: flex;
  align-items: center;
  padding: 8px 0 8px 8px;
}

.dash-user-dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 140px;
  background: #1a1a1a;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 12px;
  padding: 8px;
  z-index: 10;
}
.dash-user-menu.open .dash-user-dropdown { display: block; }

.dash-dropdown-item {
  display: block;
  width: 100%;
  text-align: left;
  padding: 10px 12px;
  border-radius: 8px;
  font-family: var(--font-poppins);
  font-size: 14px;
  color: var(--white);
  white-space: nowrap;
}
.dash-dropdown-item:hover { background: rgba(255,255,255,0.08); }

/* ─── Botão padrão (gradiente laranja→vermelho) ───────────────── */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 18px 40px;
  background: var(--gradient-btn);
  border-radius: 18px;
  font-family: var(--font-poppins);
  font-size: 16px;
  font-weight: 500;
  color: var(--white);
  white-space: nowrap;
  transition: opacity .2s;
}
.btn-primary:hover { opacity: .85; }

/* ─── Hero ───────────────────────────────────────────────────── */
.hero {
  position: relative;
  overflow: hidden;
  padding-bottom: 60px;
}

.hero-deco-left {
  position: absolute;
  left: -140px;
  top: 160px;
  width: clamp(180px, 22vw, 396px);
  pointer-events: none;
  user-select: none;
}
.hero-deco-right {
  position: absolute;
  right: -120px;
  top: 130px;
  width: clamp(160px, 20vw, 366px);
  pointer-events: none;
  user-select: none;
}

.hero-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding-top: 12px;
}

.hero-logo {
  width: clamp(260px, 34vw, 560px);
  aspect-ratio: 613 / 336; /* corta a margem transparente do PNG 639×639 */
  object-fit: cover;
  display: block;
  margin-bottom: 12px;
}

.hero-subtitle {
  max-width: 900px;
  font-family: var(--font-poppins);
  font-size: clamp(14px, 0.94vw, 18px);
  font-weight: 400;
  color: rgba(255,255,255,0.75);
  line-height: 1.6;
  margin-bottom: 48px;
}
.hero-subtitle strong { font-weight: 600; color: var(--white); }

/* ── Banner com cards flutuantes ─────────────────────────────── */
.hero-banner {
  position: relative;
  width: 100%;
  max-width: 943px;
  margin-bottom: 56px;
}
.hero-banner-img {
  width: 100%;
  height: auto;
  border-radius: 37px;
  display: block;
}

.hero-banner-fade {
  position: absolute;
  left: 50%;
  top: 89.8%;
  width: 100vw;
  max-width: none;
  height: auto;
  transform: translateX(-50%);
  pointer-events: none;
}

.hero-badge {
  position: absolute;
  left: -30px;
  top: 26%;
  width: 90px;
  height: 90px;
  background: rgba(148,148,148,0.09);
  backdrop-filter: blur(30px);
  -webkit-backdrop-filter: blur(30px);
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero-badge img { width: 72px; height: 72px; object-fit: contain; }

.hero-badge-2 {
  position: absolute;
  right: -20px;
  top: 58%;
  width: 80px;
  height: 80px;
  background: rgba(148,148,148,0.09);
  backdrop-filter: blur(30px);
  -webkit-backdrop-filter: blur(30px);
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero-badge-2 img { width: 64px; height: 64px; object-fit: contain; }

.hero-card {
  position: absolute;
  background: rgba(153,134,134,0.09);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border: 0.5px solid rgba(255,109,109,0.4);
  border-radius: 20px;
  padding: 22px 26px;
  text-align: left;
}

.hero-card-left {
  left: -138px;
  bottom: 180px;
  width: min(280px, 70vw);
}
.hero-card-title {
  font-family: var(--font-poppins);
  font-weight: 600;
  font-size: 18px;
  color: var(--white);
  margin-bottom: 8px;
  letter-spacing: -0.36px;
}
.hero-card-body {
  font-family: var(--font-poppins);
  font-size: 14px;
  color: rgba(255,255,255,0.75);
  line-height: 1.6;
}

.hero-card-right {
  right: -159px;
  top: 24px;
  width: min(343px, 65vw);
}
.hero-card-right p {
  font-family: var(--font-poppins);
  font-weight: 600;
  font-size: 16px;
  color: var(--white);
  line-height: 1.5;
}

/* ─── Cards de diferenciais ──────────────────────────────────── */
.diff-section { padding-block: 60px; }

.diff-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.diff-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  aspect-ratio: 357 / 367;
  border-radius: 23px;
  background: linear-gradient(180deg, rgba(255,255,255,0.05) 0%, rgba(255,255,255,0) 100%);
  padding: 36px 24px 56px;
  text-align: center;
}

.diff-card::before {
  content: "";
  position: absolute;
  inset: 0;
  padding: 1.5px;
  border-radius: 23px;
  background: linear-gradient(124deg, rgba(255,255,255,.3) 0%, rgba(255,255,255,.05) 55%);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

.diff-card h3 {
  font-family: var(--font-poppins);
  font-weight: 300;
  font-size: clamp(20px, 1.6vw, 28px);
  color: var(--white);
}

.diff-card p {
  font-family: var(--font-poppins);
  font-size: 15px;
  font-weight: 400;
  color: rgba(255,255,255,0.63);
  line-height: 1.7;
}

.diff-card .btn-primary {
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translate(-50%, 50%);
  width: 100%;
  max-width: 185px;
  padding: 16px 0;
}

/* ─── Objetivo da Missão ─────────────────────────────────────── */
.objetivo {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: clamp(32px, 5vw, 80px);
  align-items: start;
  padding-block: 90px;
}

.objetivo-text h2 {
  font-family: var(--font-poppins);
  font-weight: 600;
  font-size: clamp(36px, 4.2vw, 80px);
  line-height: 1.15;
  color: var(--white);
  margin-bottom: 28px;
}

.objetivo-text p {
  font-family: var(--font-poppins);
  font-size: 18px;
  font-weight: 400;
  color: rgba(255,255,255,0.75);
  line-height: 1.65;
  letter-spacing: -0.36px;
  margin-bottom: 20px;
}

.objetivo-text ul {
  padding-left: 22px;
  list-style: disc;
}
.objetivo-text li {
  font-family: var(--font-poppins);
  font-size: 18px;
  font-weight: 400;
  color: rgba(255,255,255,0.75);
  line-height: 1.65;
  letter-spacing: -0.36px;
  margin-bottom: 10px;
}

.objetivo-etapas {
  position: relative;
  border: 0.5px solid var(--white);
  border-radius: 20px;
  padding: 40px clamp(24px, 3vw, 48px);
}

.objetivo-etapas p {
  font-family: var(--font-poppins);
  font-size: 18px;
  font-weight: 400;
  color: rgba(255,255,255,0.75);
  line-height: 1.8;
  letter-spacing: -0.36px;
  margin-bottom: 14px;
}
.objetivo-etapas p:last-child { margin-bottom: 0; }
.objetivo-etapas p span {
  display: block;
  font-weight: 600;
  font-size: 24px;
  color: var(--white);
  letter-spacing: -0.48px;
}

/* ─── Banner logo horizontal ─────────────────────────────────── */
.banner-logo {
  padding-block: 60px;
  display: flex;
  justify-content: center;
}
.banner-logo img {
  width: 100%;
  max-width: 1206px;
  height: auto;
}

/* ─── Funcionalidades ────────────────────────────────────────── */
.func-section {
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding-bottom: 90px;
}

.func-box {
  background: rgba(148,148,148,0.09);
  border-radius: 20px;
}

/* Experiências — box larga com imagem + texto */
.func-experiencias {
  display: flex;
  align-items: center;
  gap: clamp(20px, 3vw, 48px);
  padding: clamp(16px, 2vw, 24px);
}
.func-experiencias img {
  width: 45%;
  max-width: 547px;
  height: auto;
  border-radius: 14px;
  object-fit: cover;
  flex-shrink: 0;
}
.func-experiencias-text h2 {
  font-family: var(--font-poppins);
  font-weight: 600;
  font-size: clamp(28px, 2.6vw, 50px);
  color: var(--white);
  letter-spacing: -1px;
  margin-bottom: 16px;
}
.func-experiencias-text p {
  font-family: var(--font-poppins);
  font-size: 18px;
  color: rgba(255,255,255,0.75);
  line-height: 1.6;
  letter-spacing: -0.36px;
  max-width: 552px;
  margin-bottom: 24px;
}

/* Dashboard | Protocolo | Central de Operações */
.func-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1.8fr;
  gap: 20px;
}

.func-dashboard,
.func-central {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 300px;
  padding: 40px 32px;
}

.func-dashboard p,
.func-central p {
  font-family: var(--font-poppins);
  font-size: 18px;
  color: rgba(255,255,255,0.75);
  line-height: 1.6;
  letter-spacing: -0.36px;
}

.func-dashboard h3 {
  font-family: var(--font-poppins);
  font-weight: 600;
  font-size: clamp(28px, 2.6vw, 50px);
  color: var(--white);
  margin-top: 24px;
}

.func-central h2 {
  font-family: var(--font-poppins);
  font-weight: 600;
  font-size: clamp(28px, 2.6vw, 50px);
  color: var(--white);
  margin-bottom: 16px;
}
.func-central .btn-primary { margin-top: 24px; align-self: flex-start; }

.func-protocolo {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 24px;
  text-align: center;
  padding: 40px 32px;
}
.func-protocolo img { width: 53px; height: 53px; }
.func-protocolo p {
  font-family: var(--font-poppins);
  font-size: 18px;
  color: rgba(255,255,255,0.75);
  line-height: 1.8;
  letter-spacing: -0.36px;
}
.func-protocolo strong {
  display: block;
  font-weight: 600;
  font-size: 24px;
  color: var(--white);
}

/* ─── Responsive ─────────────────────────────────────────────── */
@media (max-width: 900px) {
  .diff-grid { grid-template-columns: repeat(2, 1fr); }

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

  .func-experiencias { flex-direction: column; }
  .func-experiencias img { width: 100%; }
  .func-grid { grid-template-columns: 1fr; }

  .hero-deco-left,
  .hero-deco-right { display: none; }

  .hero-card { position: static; width: 100%; margin-top: 16px; }
  .hero-badge, .hero-badge-2 { display: none; }
}

@media (max-width: 600px) {
  .diff-grid { grid-template-columns: 1fr; }
  .hero-banner { margin-bottom: 24px; }
}

/* Alinhado ao breakpoint de nav mobile do global.css (768px) */
@media (max-width: 768px) {
  .dash-nav { grid-template-columns: auto 1fr; }
  .dash-user { display: none; }
}
