@import url('/assets/css/main-base.css');
@import url('/assets/css/low-power.css?v=20260820-2');
@import url('/assets/css/restore-sections.css?v=20260903-1');
@import url('/assets/css/card-alignment.css?v=20260903-1');

/* Usa a nova assinatura HudLabs enviada para o cabeçalho, mantendo o mesmo tamanho visual anterior. */
.brand {
  gap: 0 !important;
}
.brand .brand-text {
  content: url('/assets/assetshudlabs-wordmark.png?v=20260903-1') !important;
  width: 156px !important;
  height: 42px !important;
  max-width: 156px !important;
  object-fit: contain !important;
  flex: 0 0 156px !important;
  margin-left: -9px !important;
}

/* Remove a frase auxiliar do Hero. */
.hero .eyebrow {
  display: none !important;
}

/* Padrão institucional: título e texto introdutório sempre acima do conteúdo da seção. */
.about-grid {
  grid-template-columns: 1fr !important;
  gap: 34px !important;
  align-items: start !important;
}
.about-grid > .section-head {
  margin-bottom: 0 !important;
  max-width: 640px !important;
}
.about-panel {
  width: 100% !important;
  max-width: 920px !important;
}

/* Remove a linha decorativa abaixo dos títulos em todo o site. */
.section-head h2::after {
  content: none;
  display: none;
  background: none;
  border: 0;
}

/* Mantém removidos também os demais enfeites do cabeçalho da seção Sobre. */
.about-section .section-head::before,
.about-section .section-head::after,
.about-section .section-head h2::before,
.about-section .section-head h2::after {
  content: none !important;
  display: none !important;
  background: none !important;
  border: 0 !important;
}

/* Remove o círculo decorativo no canto superior direito do painel Sobre. */
.about-panel::before,
.about-panel::after {
  content: none !important;
  display: none !important;
  background: none !important;
  border: 0 !important;
  box-shadow: none !important;
}

/* Remove os três símbolos decorativos dos itens da seção Sobre. */
.about-points > div::before,
.about-points > div::after,
.about-points > div > strong::before,
.about-points > div > strong::after {
  content: none !important;
  display: none !important;
}

/* Hero desktop: o HTML tem eyebrow como primeiro div e CTAs como segundo div. */
@media (min-width: 981px) {
  .hero-grid > div {
    display: grid !important;
    grid-template-columns: minmax(0, .92fr) minmax(460px, 1.08fr) !important;
    grid-template-rows: auto auto auto auto auto !important;
    column-gap: 52px !important;
    align-items: start !important;
  }

  .hero-grid > div > .eyebrow { grid-column: 1 !important; grid-row: 1 !important; }
  .hero-grid > div > h1 { grid-column: 1 !important; grid-row: 2 !important; }
  .hero-grid > div > .lead { grid-column: 1 !important; grid-row: 3 !important; }
  .hero-grid > div > div:nth-of-type(2) { grid-column: 1 !important; grid-row: 4 !important; }

  .hero-grid > div > .code-panel {
    grid-column: 2 !important;
    grid-row: 1 / 5 !important;
    align-self: stretch !important;
    height: 100% !important;
    min-height: 470px !important;
    margin-top: 0 !important;
  }

  .hero-grid > div > .feature-strip {
    grid-column: 1 / -1 !important;
    grid-row: 5 !important;
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    margin-top: 54px !important;
  }
}

@media (max-width: 980px) {
  .why-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 14px;
    margin-inline: 0;
    padding: 0;
    overflow: visible;
    scroll-snap-type: none;
  }

  .why-card {
    width: 100%;
    min-width: 0;
    flex: none;
    scroll-snap-align: none;
  }
}

@keyframes hudlabs-mobile-reveal-restored {
  from { translate: 0 24px; scale: .992; }
  to { translate: 0 0; scale: 1; }
}

@supports (animation-timeline: view()) {
  @media (max-width: 980px) and (pointer: coarse) {
    html:not(.hud-low-power) body section:not(.hero) .section-head,
    html:not(.hud-low-power) body .about-panel,
    html:not(.hud-low-power) body .contact-shell,
    html:not(.hud-low-power) body .service-card,
    html:not(.hud-low-power) body .solution-card,
    html:not(.hud-low-power) body .process-card,
    html:not(.hud-low-power) body .why-card,
    html:not(.hud-low-power) body .faq-item,
    html:not(.hud-low-power) body .feature-item,
    html:not(.hud-low-power) body .code-panel {
      animation-name: hudlabs-mobile-reveal-restored !important;
      animation-duration: .9s !important;
      animation-fill-mode: both !important;
      animation-timing-function: cubic-bezier(.2,.75,.25,1) !important;
      animation-timeline: view() !important;
      animation-range: entry 7% cover 30% !important;
    }

    html:not(.hud-low-power) body .service-card:nth-child(2),
    html:not(.hud-low-power) body .solution-card:nth-child(2),
    html:not(.hud-low-power) body .why-card:nth-child(2) {
      animation-range: entry 12% cover 35% !important;
    }

    html:not(.hud-low-power) body .service-card:nth-child(3),
    html:not(.hud-low-power) body .solution-card:nth-child(3) {
      animation-range: entry 17% cover 40% !important;
    }
  }
}


/* Ajustes complementares de responsividade e acessibilidade. */

:where(a, button, input, select, textarea):focus-visible {
  outline: 3px solid rgba(111, 196, 255, .95);
  outline-offset: 3px;
}

.field textarea { resize: none; }
.field textarea::-webkit-resizer { display: none; background: transparent; }

/* Remove a alternativa de contato por e-mail da seção de contato. */
.contact-alternative { display: none !important; }

.drawer-socials { align-items: center; flex-wrap: nowrap; }
.drawer-socials a { position: relative; flex: 0 0 42px; width: 42px; min-width: 42px; height: 42px; overflow: hidden; text-indent: -9999px; font-size: 0; }
.drawer-socials a::before { content: ""; position: absolute; inset: 0; margin: auto; width: 19px; height: 19px; background-repeat: no-repeat; background-position: center; background-size: contain; }
.drawer-socials a[aria-label="LinkedIn"]::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%230a66c2'%3E%3Cpath d='M20.45 20.45h-3.56v-5.57c0-1.33-.03-3.04-1.85-3.04-1.85 0-2.14 1.45-2.14 2.94v5.67H9.34V8.98h3.42v1.57h.05c.48-.9 1.64-1.85 3.37-1.85 3.6 0 4.27 2.37 4.27 5.46v6.29zM5.32 7.41a2.06 2.06 0 1 1 0-4.12 2.06 2.06 0 0 1 0 4.12zM3.54 8.98H7.1v11.47H3.54V8.98z'/%3E%3C/svg%3E"); }
.drawer-socials a[aria-label="GitHub"]::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23f0f3f6'%3E%3Cpath d='M12 .7a11.5 11.5 0 0 0-3.64 22.41c.58.11.79-.25.79-.56v-2.23c-3.22.7-3.9-1.36-3.9-1.36-.53-1.34-1.29-1.7-1.29-1.7-1.05-.72.08-.71.08-.71 1.16.08 1.78 1.2 1.78 1.2 1.04 1.77 2.72 1.26 3.38.96.1-.75.4-1.26.74-1.55-2.57-.29-5.27-1.29-5.27-5.69 0-1.26.45-2.28 1.19-3.09-.12-.29-.52-1.47.11-3.05 0 0 .97-.31 3.16 1.18A10.9 10.9 0 0 1 12 6.12c.98 0 1.96.13 2.88.39 2.19-1.49 3.15-1.18 3.15-1.18.63 1.58.23 2.76.11 3.05.74.81 1.19 1.83 1.19 3.09 0 4.41-2.71 5.39-5.29 5.68.42.36.79 1.07.79 2.16v3.24c0 .31.21.68.8.56A11.5 11.5 0 0 0 12 .7z'/%3E%3C/svg%3E"); }
.drawer-socials a[aria-label="Instagram"]::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23e4405f' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='3' width='18' height='18' rx='5'/%3E%3Ccircle cx='12' cy='12' r='4'/%3E%3Ccircle cx='17.5' cy='6.5' r='1' fill='%23e4405f' stroke='none'/%3E%3C/svg%3E"); }

.whatsapp-float {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 180;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 58px;
  min-width: 58px;
  height: 58px;
  min-height: 58px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: #25D366;
  color: #fff;
  box-shadow: 0 10px 28px rgba(0,0,0,.38), 0 0 0 1px rgba(255,255,255,.08) inset;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}
.whatsapp-float:hover { transform: translateY(-2px) scale(1.03); background: #20c85d; box-shadow: 0 14px 32px rgba(0,0,0,.46), 0 0 0 1px rgba(255,255,255,.1) inset; }
.whatsapp-float svg { width: 31px; height: 31px; fill: #fff; }
.whatsapp-float span { display: none; }

body .whatsapp-official {
  position: fixed !important;
  top: auto !important;
  left: auto !important;
  right: 80px !important;
  bottom: 48px !important;
  z-index: 9999 !important;
  margin: 0 !important;
  transform: none;
}

.projects-section .section-head .kicker { font-size: 0; }
.projects-section .section-head .kicker::after { content: "Projetos"; font-size: .78rem; }
.projects-section .section-head h2 { font-size: 0; margin-bottom: 16px; }
.projects-section .section-head h2::after { content: "Projetos HudLabs"; font-size: clamp(1.7rem,3vw,2.3rem); line-height: 1.2; }
.projects-section .section-head p { font-size: 0; }
.projects-section .section-head p::after { content: "Esta área será atualizada com projetos desenvolvidos pela HudLabs."; font-size: 1rem; line-height: 1.5; color: var(--text-dim); }
.projects-section .projects-note { display: none !important; }
.projects-section .projects-grid { display: grid !important; grid-template-columns: repeat(3, minmax(0,1fr)) !important; gap: 22px !important; }
.projects-section .project-card { display: block !important; min-height: 0 !important; padding: 0 !important; overflow: hidden !important; border: 1px solid var(--card-border) !important; border-radius: 14px !important; background: var(--card) !important; box-shadow: none !important; }
.projects-section .project-card:hover { transform: translateY(-4px) !important; border-color: rgba(38,160,255,.32) !important; }
.projects-section .project-type { display: flex !important; align-items: center !important; justify-content: center !important; width: 100% !important; height: 150px !important; margin: 0 !important; padding: 0 !important; border: 0 !important; border-radius: 0 !important; background: linear-gradient(135deg,#11162d,#214b8f) !important; color: transparent !important; font-size: 0 !important; }
.projects-section .project-card:nth-child(2) .project-type { background: linear-gradient(135deg,#12162c,#5e2bb0) !important; }
.projects-section .project-card:nth-child(3) .project-type { background: linear-gradient(135deg,#101428,#2b78d1) !important; }
.projects-section .project-type::after { content: ""; display: inline-flex; align-items: center; justify-content: center; width: 118px; height: 70px; border: 1px dashed rgba(255,255,255,.22); border-radius: 12px; }
.projects-section .project-card h3 { margin: 18px 20px 8px !important; font-size: 0 !important; }
.projects-section .project-card h3::after { content: "Nome do projeto"; font-size: 1rem; color: var(--text); }
.projects-section .project-card p { margin: 0 20px 22px !important; font-size: 0 !important; }
.projects-section .project-card p::after { content: "Descrição do projeto e da solução desenvolvida pela HudLabs."; font-size: .85rem; line-height: 1.55; color: var(--text-dim); }
.projects-section .project-stack { display: none !important; }

@keyframes hudlabs-reveal-up {
  from { opacity: 1; transform: translateY(28px) scale(.985); filter: none; }
  to { opacity: 1; transform: translateY(0) scale(1); filter: none; }
}
@keyframes hudlabs-reveal-soft {
  from { opacity: 1; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}

@supports (animation-timeline: view()) {
  section:not(.hero) .section-head,
  .about-panel,
  .contact-shell,
  .service-card,
  .solution-card,
  .process-card,
  .why-card,
  .faq-item,
  .projects-section .project-card {
    animation-name: hudlabs-reveal-up;
    animation-duration: 1s;
    animation-fill-mode: both;
    animation-timing-function: cubic-bezier(.2,.75,.25,1);
    animation-timeline: view();
    animation-range: entry 8% cover 30%;
  }
  .service-card:nth-child(2),.solution-card:nth-child(2),.process-card:nth-child(2),.why-card:nth-child(2),.projects-section .project-card:nth-child(2) { animation-range: entry 13% cover 35%; }
  .service-card:nth-child(3),.solution-card:nth-child(3),.process-card:nth-child(3),.why-card:nth-child(3),.projects-section .project-card:nth-child(3) { animation-range: entry 18% cover 40%; }
  .service-card:nth-child(4),.solution-card:nth-child(4),.process-card:nth-child(4) { animation-range: entry 23% cover 45%; }
  .feature-item,.code-panel { animation-name: hudlabs-reveal-soft; animation-duration: .9s; animation-fill-mode: both; animation-timing-function: ease-out; animation-timeline: view(); animation-range: entry 5% cover 28%; }
}

@media (min-width: 768px) {
  .header-whatsapp { display: inline-flex !important; visibility: visible !important; opacity: 1 !important; }
}
@media (max-width: 767px) {
  .header-whatsapp { display: none !important; }
}

@media (max-width: 640px) {
  /* Cabeçalho mobile ocupa a viewport inteira, sem recuo lateral externo. */
  html, body { width: 100%; max-width: 100%; overflow-x: hidden; }
  header {
    width: 100vw !important;
    max-width: none !important;
    min-height: 0 !important;
    margin: 0 !important;
    left: 0 !important;
    right: 0 !important;
  }
  .header-inner {
    width: 100% !important;
    max-width: none !important;
    min-height: 68px !important;
    margin: 0 !important;
    padding: 8px 16px !important;
    gap: 12px;
  }
  .brand { min-width: 0; gap: 9px !important; }
  .brand > img { width: 42px !important; height: 42px !important; object-fit: contain !important; }
  .brand .brand-text { width: auto !important; height: 34px !important; max-width: 58vw !important; object-fit: contain !important; transform: none !important; }
  .menu-toggle { width: 38px !important; height: 38px !important; font-size: 1.45rem !important; flex: 0 0 38px; margin-left: auto !important; }

  .hero .feature-item { opacity: 1 !important; filter: none !important; }
  .hero .feature-copy strong,
  .hero .feature-copy span { color: #fff !important; opacity: 1 !important; }

  .contact-grid { grid-template-columns: 1fr; }
  .contact-shell { padding: 24px 18px; border-radius: 16px; }
  .contact-actions .btn { width: 100%; }

  .drawer { padding-top: 20px; padding-bottom: 22px; overflow-y: auto; }
  .drawer-top { margin-bottom: 28px; }
  .drawer-top .brand-text { font-size: 1.08rem !important; }
  .drawer nav { gap: 15px; margin-bottom: 30px; }
  .drawer nav a { font-size: .98rem; line-height: 1.25; padding: 6px 0; }
  .drawer-socials { gap: 14px; margin-bottom: 30px; }
  .drawer-socials a { flex-basis: 40px; width: 40px; min-width: 40px; height: 40px; }
  .drawer-why { margin-bottom: 17px; font-size: .74rem; }
  .drawer-why-list { gap: 17px; }
  .drawer-why-item p { font-size: .78rem; line-height: 1.45; }

  .whatsapp-float { right: 16px; bottom: 16px; width: 56px; min-width: 56px; height: 56px; min-height: 56px; }
  .whatsapp-float svg { width: 30px; height: 30px; }
  body .whatsapp-official { right: 16px !important; bottom: 30px !important; }

  .projects-section .projects-grid { display: flex !important; overflow-x: auto !important; gap: 16px !important; padding-bottom: 8px !important; scroll-snap-type: x mandatory; }
  .projects-section .project-card { min-width: 82% !important; scroll-snap-align: start; }
}

@media (max-width: 420px) {
  .header-inner { padding-inline: 14px !important; }
  .container { padding-inline: 16px; }
  .brand > img { width: 39px !important; height: 39px !important; }
  .brand .brand-text { height: 31px !important; max-width: 57vw !important; }
  .drawer { width: min(320px, 90vw); padding-inline: 22px; }
}

@media (max-height: 760px) and (max-width: 640px) {
  .drawer { padding-top: 14px; padding-bottom: 14px; }
  .drawer-top { margin-bottom: 18px; }
  .drawer nav { gap: 9px; margin-bottom: 20px; }
  .drawer nav a { font-size: .94rem; padding: 4px 0; }
  .drawer-socials { margin-bottom: 20px; }
  .drawer-why { margin-bottom: 11px; }
  .drawer-why-list { gap: 10px; }
  .drawer-why-item p { font-size: .74rem; line-height: 1.35; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

/* Processo: mantém os cards limpos, mas com o mesmo acabamento visual dos demais cards. */
.process-card::before {
  background:
    radial-gradient(circle at 100% 0, rgba(75,173,255,.12), transparent 28%),
    radial-gradient(circle at 0 100%, rgba(177,76,255,.07), transparent 32%),
    linear-gradient(135deg, rgba(50,173,255,.045), transparent 45%) !important;
}
.process-card:nth-child(even)::before {
  background:
    radial-gradient(circle at 100% 0, rgba(177,76,255,.12), transparent 28%),
    radial-gradient(circle at 0 100%, rgba(50,173,255,.07), transparent 32%),
    linear-gradient(135deg, rgba(177,76,255,.04), transparent 45%) !important;
}

/* Hero mobile: quebra visual equilibrada e previsível. */
@media (max-width: 640px) {
  .hero h1 {
    width: 100%;
    max-width: none;
    font-size: clamp(1.7rem, 8.7vw, 2.55rem);
    line-height: .98;
    letter-spacing: -.05em;
    white-space: nowrap;
  }
  .hero h1 .accent {
    display: block;
    max-width: 100%;
    white-space: normal;
  }
}

/* Hero mobile: Tecnologia feita / para resolver / problemas reais. */
@media (max-width: 640px) {
  .hero h1 {
    width: 100%;
    max-width: 13ch !important;
    font-size: clamp(2.35rem, 11vw, 3.35rem) !important;
    line-height: 1.02 !important;
    letter-spacing: -.045em;
    white-space: normal !important;
    word-break: normal;
    overflow-wrap: normal;
  }
  .hero h1 br { display: none !important; }
  .hero h1 .accent {
    display: inline !important;
    max-width: none !important;
    white-space: normal !important;
  }
}


/* Blocos institucionais complementares da home */
.solutions-section {
  background:
    radial-gradient(circle at 10% 20%, rgba(38,160,255,.08), transparent 28%),
    radial-gradient(circle at 90% 80%, rgba(167,52,255,.07), transparent 26%);
}
.solutions-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}
.solution-card {
  position: relative;
  min-height: 220px;
  padding: 28px;
  border: 1px solid rgba(255,255,255,.07);
  border-radius: 20px;
  background: linear-gradient(145deg, rgba(17,25,43,.96), rgba(9,13,25,.98));
  overflow: hidden;
  transition: transform .2s ease, border-color .2s ease;
}
.solution-card::before {
  content: "";
  position: absolute;
  width: 130px;
  height: 130px;
  right: -54px;
  top: -54px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(38,160,255,.16), transparent 68%);
  pointer-events: none;
}
.solution-card:nth-child(even)::before {
  background: radial-gradient(circle, rgba(167,52,255,.16), transparent 68%);
}
.solution-card:hover {
  transform: translateY(-4px);
  border-color: rgba(38,160,255,.3);
}
.solution-label {
  display: inline-flex;
  margin-bottom: 24px;
  color: #72c4ff;
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.solution-card h3 {
  max-width: 440px;
  margin-bottom: 10px;
  font-size: 1.12rem;
}
.solution-card p {
  max-width: 500px;
  margin-bottom: 20px;
  color: var(--text-dim);
  font-size: .88rem;
}
.solution-card .link-arrow { font-size: .86rem; }

.faq-section {
  border-block: 1px solid rgba(255,255,255,.04);
  background: linear-gradient(180deg, rgba(11,16,32,.34), rgba(7,9,18,.08));
}
.faq-layout {
  display: grid;
  grid-template-columns: minmax(0,.72fr) minmax(0,1.28fr);
  gap: 56px;
  align-items: start;
}
.faq-layout .section-head {
  position: sticky;
  top: 110px;
  margin-bottom: 0;
}
.faq-list {
  display: grid;
  gap: 12px;
}
.faq-item {
  border: 1px solid rgba(255,255,255,.07);
  border-radius: 16px;
  background: linear-gradient(145deg, rgba(17,22,40,.94), rgba(9,13,24,.98));
  overflow: hidden;
}
.faq-item summary {
  position: relative;
  padding: 20px 54px 20px 20px;
  color: var(--text);
  font-weight: 650;
  cursor: pointer;
  list-style: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  color: #72c4ff;
  font-size: 1.35rem;
  font-weight: 400;
}
.faq-item[open] summary::after { content: "−"; }
.faq-item p {
  padding: 0 20px 20px;
  color: var(--text-dim);
  font-size: .9rem;
  line-height: 1.65;
}
.faq-item summary:focus-visible {
  outline: 3px solid rgba(111,196,255,.8);
  outline-offset: -3px;
  border-radius: 14px;
}

/* Primeira dobra: mais editorial, humana e com hierarquia visual clara */
.hero {
  position: relative;
  overflow: hidden;
  padding-top: 88px;
}
.hero::before {
  content: "";
  position: absolute;
  width: 520px;
  height: 520px;
  top: -230px;
  left: -190px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(38,160,255,.13), transparent 68%);
  pointer-events: none;
}
.hero::after {
  content: "";
  position: absolute;
  width: 460px;
  height: 460px;
  right: -170px;
  top: 40px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(167,52,255,.11), transparent 68%);
  pointer-events: none;
}
.hero .container {
  position: relative;
  z-index: 1;
}
.hero-grid > div {
  display: grid;
  grid-template-columns: minmax(0, .92fr) minmax(420px, 1.08fr);
  column-gap: 54px;
  align-items: center;
}
.hero .eyebrow,
.hero h1,
.hero p.lead,
.hero-grid > div > div:nth-of-type(2) {
  grid-column: 1;
}
.hero .eyebrow {
  justify-self: start;
  margin-bottom: 18px;
  padding: 7px 11px;
  border: 1px solid rgba(114,196,255,.18);
  border-radius: 999px;
  background: rgba(38,160,255,.06);
  color: #8fcfff;
  font-size: .7rem;
  letter-spacing: .13em;
  text-transform: uppercase;
}
.hero h1 {
  max-width: 620px;
  margin-bottom: 20px;
  font-size: clamp(2.55rem, 5vw, 4.5rem);
  line-height: 1.01;
  letter-spacing: -.045em;
}
.hero h1 .accent {
  background: linear-gradient(100deg, #6bc6ff 0%, #9b8cff 48%, #d47aff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero p.lead {
  max-width: 590px;
  margin-bottom: 10px;
  color: #b5bdd2;
  font-size: 1.05rem;
  line-height: 1.72;
}
.hero-grid > div > div:nth-of-type(2) {
  margin: 22px 0 0 !important;
}
.hero-grid > div > div:nth-of-type(2) .btn {
  min-height: 48px;
  border: 1px solid rgba(255,255,255,.09);
}
.hero-grid > div > div:nth-of-type(2) .btn:not(.btn-primary) {
  background: rgba(255,255,255,.025);
  color: var(--text-dim);
}
.hero-grid > div > div:nth-of-type(2) .btn:not(.btn-primary):hover {
  color: var(--text);
  border-color: rgba(255,255,255,.18);
  background: rgba(255,255,255,.045);
}
.hero .code-panel {
  grid-column: 2;
  grid-row: 1 / span 4;
  align-self: stretch;
  height: 100%;
  min-height: 470px;
  border-radius: 22px;
  border-color: rgba(255,255,255,.09);
  background: linear-gradient(180deg, rgba(8,17,32,.98), rgba(6,12,24,.99));
  box-shadow: 0 32px 90px -42px rgba(0,0,0,.92), 0 0 0 1px rgba(38,160,255,.025);
}
.hero .code-header {
  min-height: 48px;
  background: rgba(255,255,255,.018);
}
.hero .code-body {
  height: calc(100% - 48px);
  min-height: 420px;
}
.hero .feature-strip {
  grid-column: 1 / -1;
  grid-template-columns: repeat(4, minmax(0,1fr));
  gap: 14px;
  margin-top: 54px;
  padding-top: 26px;
}
.hero .feature-item {
  min-height: 138px;
  padding: 18px;
  background: rgba(13,20,35,.58);
  backdrop-filter: blur(8px);
}

/* Destaque dos cards que ainda estavam discretos */
.solution-card {
  isolation: isolate;
  border-color: rgba(103,139,205,.28);
  background: linear-gradient(155deg,#151e35,#0c1325);
  box-shadow: 0 18px 44px -34px rgba(50,173,255,.55);
}
.solution-card::after {
  content: "";
  position: absolute;
  left: 22px;
  right: 22px;
  top: 0;
  height: 1px;
  background: linear-gradient(90deg,transparent,rgba(66,181,255,.8),rgba(177,76,255,.52),transparent);
  opacity: .72;
}
.solution-card:nth-child(even)::after {
  background: linear-gradient(90deg,transparent,rgba(177,76,255,.75),rgba(66,181,255,.5),transparent);
}
.solution-label {
  position: relative;
  padding: 6px 10px;
  border: 1px solid rgba(109,191,255,.2);
  border-radius: 999px;
  background: rgba(50,173,255,.06);
  box-shadow: 0 0 18px -12px rgba(50,173,255,.8);
}
.solution-card:nth-child(even) .solution-label {
  color: #d09aff;
  border-color: rgba(177,76,255,.22);
  background: rgba(177,76,255,.055);
}
.solution-card h3 { color:#f7f9fd; }
.solution-card .link-arrow {
  position: relative;
  padding-top: 14px;
  border-top: 1px solid rgba(118,149,207,.13);
}
.solution-card .link-arrow::before {
  content:"";
  position:absolute;
  left:0;
  top:-1px;
  width:42px;
  height:1px;
  background:linear-gradient(90deg,var(--teal),transparent);
}
.solution-card:hover {
  border-color: rgba(73,177,255,.5);
  box-shadow: 0 24px 58px -34px rgba(42,144,255,.68);
}

.faq-item {
  position: relative;
  border-color: rgba(102,135,198,.25);
  background: linear-gradient(145deg,#141c31,#0c1223);
  box-shadow: 0 14px 34px -30px rgba(42,144,255,.46);
  transition: border-color .22s ease, background .22s ease, box-shadow .22s ease;
}
.faq-item::before {
  content:"";
  position:absolute;
  left:0;
  top:15px;
  bottom:15px;
  width:2px;
  border-radius:999px;
  background:linear-gradient(180deg,var(--teal),rgba(177,76,255,.55));
  opacity:.58;
}
.faq-item summary::after {
  width:30px;
  height:30px;
  display:grid;
  place-items:center;
  border:1px solid rgba(111,192,255,.2);
  border-radius:8px;
  background:rgba(50,173,255,.055);
}
.faq-item[open] {
  border-color: rgba(73,177,255,.43);
  background: linear-gradient(145deg,#17213a,#0d1528);
  box-shadow: 0 20px 46px -32px rgba(42,144,255,.65);
}
.faq-item[open]::before { opacity:1; }

.hero .feature-item {
  position:relative;
  border-color:rgba(105,139,204,.28);
  background:linear-gradient(160deg,rgba(20,30,52,.86),rgba(10,17,31,.88));
  box-shadow:0 16px 34px -30px rgba(42,144,255,.55);
}
.hero .feature-item:nth-child(odd) { box-shadow:0 16px 34px -30px rgba(42,144,255,.62); }
.hero .feature-item:nth-child(even) { box-shadow:0 16px 34px -30px rgba(177,76,255,.52); }
.hero .feature-item strong::before {
  content:"";
  display:inline-block;
  width:7px;
  height:7px;
  margin-right:9px;
  border-radius:50%;
  background:var(--teal);
  box-shadow:0 0 12px rgba(50,173,255,.7);
}
.hero .feature-item:nth-child(even) strong::before {
  background:#b14cff;
  box-shadow:0 0 12px rgba(177,76,255,.68);
}
.hero .feature-copy strong,
.hero .feature-copy span {
  color:#fff;
}

.projects-section .project-card {
  position:relative !important;
  border-color:rgba(104,136,197,.30) !important;
  background:linear-gradient(160deg,#141d33,#0b1223) !important;
  box-shadow:0 18px 42px -34px rgba(42,144,255,.55) !important;
}
.projects-section .project-card::before {
  content:"";
  position:absolute;
  inset:0;
  pointer-events:none;
  border-radius:inherit;
  background:radial-gradient(circle at 95% 5%,rgba(50,173,255,.08),transparent 26%);
  z-index:0;
}
.projects-section .project-card:nth-child(even)::before {
  background:radial-gradient(circle at 95% 5%,rgba(177,76,255,.09),transparent 26%);
}
.projects-section .project-card::after {
  content:"";
  position:absolute;
  left:18px;
  right:18px;
  top:0;
  height:1px;
  background:linear-gradient(90deg,transparent,rgba(76,185,255,.78),rgba(177,76,255,.5),transparent);
  z-index:2;
}
.projects-section .project-card h3,
.projects-section .project-card p,
.projects-section .project-card .project-link { position:relative; z-index:1; }
.projects-section .project-type {
  border-bottom:1px solid rgba(104,136,197,.18) !important;
}
.projects-section .project-card:hover {
  border-color:rgba(73,177,255,.5) !important;
  box-shadow:0 24px 54px -34px rgba(42,144,255,.7) !important;
}

@media (max-width: 980px) {
  .solutions-grid { grid-template-columns: 1fr; }
  .solution-card { min-height: auto; }
  .faq-layout { grid-template-columns: 1fr; gap: 28px; }
  .faq-layout .section-head { position: static; }

  .hero {
    padding-top: 64px;
  }
  .hero-grid > div {
    grid-template-columns: 1fr;
    row-gap: 0;
  }
  .hero .eyebrow,
  .hero h1,
  .hero p.lead,
  .hero-grid > div > div:nth-of-type(2),
  .hero .code-panel,
  .hero .feature-strip {
    grid-column: 1;
  }
  .hero .code-panel {
    grid-row: auto;
    margin-top: 32px;
    min-height: 410px;
  }
  .hero .code-body {
    min-height: 360px;
  }
  .hero .feature-strip {
    grid-template-columns: repeat(2, minmax(0,1fr));
    margin-top: 36px;
  }
  .solution-card:hover,
  .projects-section .project-card:hover { transform:none !important; }
}

@media (max-width: 640px) {
  .hero {
    padding-top: 46px;
    padding-bottom: 42px;
  }
  .hero::before {
    width: 360px;
    height: 360px;
    top: -190px;
    left: -190px;
  }
  .hero::after {
    width: 320px;
    height: 320px;
    right: -180px;
    top: 170px;
  }
  .hero .eyebrow {
    margin-bottom: 16px;
  }
  .hero h1 {
    max-width: 13ch;
    font-size: clamp(2.35rem, 11vw, 3.35rem);
    line-height: 1.02;
  }
  .hero p.lead {
    font-size: .98rem;
    line-height: 1.62;
  }
  .hero-grid > div > div:nth-of-type(2) {
    display: grid !important;
    grid-template-columns: 1fr;
    gap: 10px !important;
    width: 100%;
  }
  .hero-grid > div > div:nth-of-type(2) .btn {
    width: 100%;
  }
  .hero .code-panel {
    margin-top: 26px;
    min-height: 350px;
    height: 350px;
    border-radius: 18px;
  }
  .hero .code-body {
    min-height: 300px;
    height: 300px;
    padding: 18px 16px;
    font-size: .74rem;
    line-height: 1.65;
  }
  .hero .feature-strip {
    grid-template-columns: 1fr;
    gap: 10px;
    margin-top: 28px;
    padding-top: 20px;
  }
  .hero .feature-item {
    min-height: auto;
    padding: 16px;
  }
}

/* Corrige a sobreposição do cabeçalho de Projetos causada pelo pseudo-elemento global do título. */
.projects-section .section-head h2::after {
  display:block;
  width:auto;
  height:auto;
  margin-top:0;
  border-radius:0;
  background:none;
  opacity:1;
}
.projects-section .section-head p::after {
  display:block;
  width:auto;
  height:auto;
  margin:0;
}
@media (max-width:640px) {
  .projects-section .section-head {
    display:block;
    margin-bottom:34px;
  }
  .projects-section .section-head .kicker {
    display:block;
    margin-bottom:14px;
  }
  .projects-section .section-head h2 {
    display:block;
    margin:0 0 14px;
    line-height:1.15;
  }
  .projects-section .section-head h2::after {
    white-space:normal;
    line-height:1.12;
  }
  .projects-section .section-head p {
    display:block;
    margin:0;
    line-height:1.55;
  }
}

/* Portfólio preservado no código, mas oculto até os cases estarem prontos. */
.projects-section,
a[href="#projetos"] {
  display: none !important;
}


/* Mantém símbolo e assinatura HudLabs visualmente próximos em todas as larguras. */
.brand {
  gap: 0 !important;
}

.brand .brand-text {
  margin-left: -9px !important;
}

/* Ajuste fino da marca no cabeçalho mobile: aumenta somente o símbolo HL. */
@media (max-width: 640px) {
  .brand > img:first-child {
    width: 56px !important;
    height: 56px !important;
    flex: 0 0 56px !important;
    object-fit: contain !important;
  }
  .brand .brand-text {
    margin-left: -9px !important;
  }
}

@media (max-width: 420px) {
  .brand > img:first-child {
    width: 52px !important;
    height: 52px !important;
    flex-basis: 52px !important;
  }
  .brand .brand-text {
    margin-left: -9px !important;
  }
}

/*
 * O breakpoint institucional empilhava o Hero até 980px.
 * Em desktop compacto isso deixava o painel launch.ts abaixo do texto.
 * Mantemos o empilhamento apenas em telas realmente mobile.
 */
@media (min-width: 700px) and (max-width: 980px) {
  .hero-grid > div {
    display: grid !important;
    grid-template-columns: minmax(0, .92fr) minmax(360px, 1.08fr) !important;
    grid-template-rows: auto auto auto auto auto !important;
    column-gap: 32px !important;
    align-items: start !important;
  }

  .hero-grid > div > .eyebrow {
    grid-column: 1 !important;
    grid-row: 1 !important;
    width: auto !important;
  }

  .hero-grid > div > h1 {
    grid-column: 1 !important;
    grid-row: 2 !important;
    width: auto !important;
    font-size: clamp(2.25rem, 4.7vw, 3.45rem) !important;
  }

  .hero-grid > div > .lead {
    grid-column: 1 !important;
    grid-row: 3 !important;
    width: auto !important;
  }

  .hero-grid > div > div:nth-of-type(2) {
    grid-column: 1 !important;
    grid-row: 4 !important;
    width: auto !important;
  }

  .hero-grid > div > .code-panel {
    grid-column: 2 !important;
    grid-row: 1 / 5 !important;
    width: 100% !important;
    height: 100% !important;
    min-height: 430px !important;
    margin-top: 0 !important;
    align-self: stretch !important;
  }

  .hero-grid > div > .feature-strip {
    grid-column: 1 / -1 !important;
    grid-row: 5 !important;
    width: 100% !important;
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    margin-top: 38px !important;
  }
}


/* Animação do botão flutuante de WhatsApp — padrão Mecânica Globo */
.whatsapp-official {
  animation: hudlabsWhatsappPulse 1.6s ease-out infinite;
}

.whatsapp-official::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: 50%;
  border: 2px solid rgba(37, 211, 102, .55);
  animation: hudlabsWhatsappRing 1.6s ease-out infinite;
  pointer-events: none;
}

@keyframes hudlabsWhatsappPulse {
  0%, 100% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(37, 211, 102, .42), 0 15px 35px rgba(0, 0, 0, .4);
  }
  50% {
    transform: scale(1.06);
    box-shadow: 0 0 0 10px rgba(37, 211, 102, .09), 0 15px 35px rgba(0, 0, 0, .4);
  }
}

@keyframes hudlabsWhatsappRing {
  0% {
    transform: scale(.92);
    opacity: .85;
  }
  70% {
    transform: scale(1.42);
    opacity: 0;
  }
  100% {
    transform: scale(1.42);
    opacity: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .whatsapp-official,
  .whatsapp-official::before {
    animation: none;
  }
}


/* Logo do Feuille no card de projetos */
.projects-section .project-card:nth-child(2)::before {
  background:
    url('/assets/feuille-logo.webp') no-repeat calc(100% - 22px) 22px / 64px 64px,
    radial-gradient(circle at 95% 5%, rgba(177,76,255,.09), transparent 26%);
}
.projects-section .project-card:nth-child(2) .project-type {
  position: relative;
  z-index: 1;
  margin-right: 78px;
}
@media (max-width: 640px) {
  .projects-section .project-card:nth-child(2)::before {
    background:
      url('/assets/feuille-logo.webp') no-repeat calc(100% - 18px) 18px / 56px 56px,
      radial-gradient(circle at 95% 5%, rgba(177,76,255,.09), transparent 26%);
  }
  .projects-section .project-card:nth-child(2) .project-type {
    margin-right: 68px;
  }
}


/* Projetos publicados no site oficial. */
.projects-section {
  display: block !important;
}

.desktop-nav a[href="#projetos"] {
  display: inline-block !important;
}

.drawer nav a[href="#projetos"] {
  display: block !important;
}

.projects-section .section-head .kicker {
  display: none !important;
}

.projects-section .section-head h2 {
  font-size: 0 !important;
  margin-bottom: 0 !important;
}

.projects-section .section-head h2::after {
  content: "Projetos" !important;
  display: block !important;
  font-size: clamp(1.7rem, 3vw, 2.3rem) !important;
  line-height: 1.2 !important;
}

.projects-section .section-head p,
.projects-section .section-head p::after {
  display: none !important;
  content: none !important;
}

.projects-section .projects-note {
  display: none !important;
}

.projects-section .projects-grid {
  display: block !important;
  width: 100% !important;
  overflow: hidden !important;
  padding: 8px 0 10px !important;
}

.projects-section .hud-project-logo-viewport {
  width: 100%;
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent 0, #000 42px, #000 calc(100% - 42px), transparent 100%);
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 42px, #000 calc(100% - 42px), transparent 100%);
}

.projects-section .hud-project-logo-track {
  display: flex;
  align-items: center;
  width: max-content;
  min-width: 100%;
  padding: 26px 54px 30px;
  will-change: transform;
}

.projects-section .hud-project-logo-sequence {
  display: flex;
  align-items: center;
  gap: clamp(64px, 8vw, 112px);
  flex: 0 0 auto;
  padding-right: clamp(64px, 8vw, 112px);
}

.projects-section .hud-project-logo-track.is-single {
  width: 100%;
  min-width: 100%;
  justify-content: center;
  padding-inline: 24px;
  transform: none !important;
  will-change: auto;
}

.projects-section .hud-project-logo-item {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 180px;
  padding: 0;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  color: inherit;
  text-decoration: none;
}

.projects-section .hud-project-logo-image {
  display: block;
  width: 142px;
  height: 142px;
  object-fit: contain;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  transition: transform .28s ease, filter .28s ease;
}

.projects-section .hud-project-logo-item:hover .hud-project-logo-image {
  transform: translateY(-4px) scale(1.035);
  filter: brightness(1.05);
}

.projects-section .hud-project-logo-name {
  margin-top: 6px;
  color: var(--text);
  font-size: .96rem;
  font-weight: 700;
  letter-spacing: -.01em;
}

.projects-section .hud-project-logo-category {
  margin-top: 2px;
  color: var(--text-faint);
  font-size: .74rem;
  font-weight: 600;
  letter-spacing: .04em;
}

@media (max-width: 640px) {
  .projects-section .hud-project-logo-viewport {
    mask-image: linear-gradient(90deg, transparent 0, #000 16px, #000 calc(100% - 16px), transparent 100%);
    -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 16px, #000 calc(100% - 16px), transparent 100%);
  }

  .projects-section .hud-project-logo-track {
    padding: 20px 28px 24px;
  }

  .projects-section .hud-project-logo-sequence {
    gap: 48px;
    padding-right: 48px;
  }

  .projects-section .hud-project-logo-item {
    min-width: 150px;
  }

  .projects-section .hud-project-logo-image {
    width: 118px;
    height: 118px;
  }

  .projects-section .hud-project-logo-name {
    margin-top: 5px;
  }
}
