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

:root {
  --black: #080808;
  --white: #FFFFFF;
  --amber: #F5A623;
  --amber-dim: rgba(245, 166, 35, .15);
  /* Azul do widget de acessibilidade. Fica fora da paleta da marca de proposito:
     o botao e fixo e flutua sobre as secoes de fundo ambar (#universidades,
     #fluxo, #cta-final), onde um botao ambar sumiria. */
  --a11y: #0B63CE;
  --muted: rgba(255, 255, 255, .75);
  /* Aumentado para .75 para contraste WCAG AAA super legível */
  --divider: rgba(255, 255, 255, .1);
  --surface: rgba(255, 255, 255, .04);
}

html {
  scroll-behavior: smooth;
  /* A nav e fixa (64px). Sem isto, saltar para #solucoes, #contato ou para o
     alvo do skip-link (#main-content) deixa o titulo embaixo da barra. */
  scroll-padding-top: 84px;
  /* Base em 120%: o widget de acessibilidade sobrescreve via --html-font-size.
     O padrao no JS (script.js) precisa acompanhar este valor. */
  font-size: var(--html-font-size, 120%);
}

body {
  font-family: 'DM Sans', sans-serif;
  background: var(--black);
  color: var(--white);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* ── NAV ── */
nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 0 6vw;
  height: 64px;
  border-bottom: 1px solid var(--divider);
  background: rgba(8, 8, 8, .8);
  backdrop-filter: blur(16px);
}

.nav-logo {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.nav-logo svg {
  height: 44px;
  width: auto;
  transition: opacity .2s;
}

.nav-logo:hover svg {
  opacity: 0.8;
}

.nav-logo .logo-amber {
  fill: #F5A623;
}

.nav-logo .logo-white {
  fill: #ffffff;
}

.nav-links {
  display: flex;
  gap: 2.5rem;
  list-style: none;
}

.nav-links a {
  font-size: .9rem;
  font-weight: 500;
  color: var(--muted);
  text-decoration: none;
  letter-spacing: .01em;
  transition: color .2s;
}

.nav-links a:hover {
  color: var(--white);
}

.nav-cta {
  font-size: .85rem;
  font-weight: 700;
  color: var(--black);
  background: var(--amber);
  padding: .5rem 1.25rem;
  text-decoration: none;
  letter-spacing: -.01em;
  transition: opacity .2s;
}

.nav-cta:hover {
  opacity: .85;
}

/* ── HAMBURGER / MOBILE NAV ── */
.nav-hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  width: 40px;
  height: 40px;
}

.nav-hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--white);
  transition: transform .25s, opacity .25s;
}

body.nav-open .nav-hamburger span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

body.nav-open .nav-hamburger span:nth-child(2) {
  opacity: 0;
}

body.nav-open .nav-hamburger span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

body.nav-open {
  overflow: hidden;
}

.nav-mobile {
  display: none;
  position: fixed;
  top: 64px;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 199;
  background: var(--black);
  border-top: 1px solid var(--divider);
  flex-direction: column;
  padding: 2.5rem 6vw 3rem;
  overflow-y: auto;
}

body.nav-open .nav-mobile {
  display: flex;
}

.nav-mobile ul {
  list-style: none;
  display: flex;
  flex-direction: column;
}

.nav-mobile ul a {
  display: block;
  font-size: 1.75rem;
  font-weight: 900;
  letter-spacing: -.035em;
  color: var(--white);
  text-decoration: none;
  padding: 1.1rem 0;
  border-bottom: 1px solid var(--divider);
  transition: color .2s;
}

.nav-mobile ul a:hover {
  color: var(--amber);
}

.nav-mobile .nav-mobile-cta {
  display: inline-block;
  align-self: flex-start;
  margin-top: 2.5rem;
  background: var(--amber);
  color: var(--black);
  font-size: .95rem;
  font-weight: 700;
  padding: 1rem 2rem;
  text-decoration: none;
  transition: opacity .2s;
}

.nav-mobile .nav-mobile-cta:hover {
  opacity: .85;
}

/* A primeira secao das paginas de produto (#intro) precisa reservar a altura
   da nav fixa. O .s tem 96px de topo no desktop, o que ja da folga, mas cai
   para 64px abaixo de 860px e 52px abaixo de 480px, quando a nav continua com
   64px: o rotulo nascia por baixo dela. O #hero da home resolve isso com
   padding proprio. */
#intro {
  padding-top: 96px;
}

/* ── HERO ── */
#hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  /* padding-top reserva a altura da nav fixa (64px), senão em janelas baixas
     o conteúdo ancorado embaixo cresce por trás da nav e esconde o hero-label */
  padding: 80px 6vw 10vh;
  position: relative;
  overflow: hidden;
}

#hero-canvas {
  position: absolute;
  inset: 0;
  z-index: 0;
  display: block;
}

.hero-fade {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(to bottom, rgba(8, 8, 8, .35) 0%, transparent 30%, transparent 60%, rgba(8, 8, 8, .9) 100%);
}

.hero-wordmark {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: clamp(34rem, 76vw, 76rem);
  height: auto;
  color: var(--white);
  opacity: .04;
  pointer-events: none;
  user-select: none;
  z-index: 2;
}

.hero-wordmark svg {
  display: block;
  width: 100%;
  height: auto;
}

.hero-content {
  position: relative;
  z-index: 3;
  max-width: 900px;
}

.hero-label {
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--amber);
  margin-bottom: 2rem;
  display: flex;
  align-items: center;
  gap: .75rem;
}

.hero-label::before {
  content: '';
  display: block;
  width: 32px;
  height: 1px;
  background: var(--amber);
}

.hero-title {
  font-size: clamp(2.8rem, 6.5vw, 5.5rem);
  font-weight: 900;
  line-height: 1.0;
  letter-spacing: -.04em;
  margin-bottom: 2.5rem;
}

.hero-title .line-muted {
  display: block;
  color: rgba(255, 255, 255, .7);
  /* Aumentado de .25 para .7 para contraste WCAG legível no título */
  font-weight: 300;
  font-style: italic;
  font-size: .65em;
  letter-spacing: -.01em;
  margin-bottom: .15em;
}

.hero-bottom {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
  border-top: 1px solid var(--divider);
  padding-top: 2rem;
}

.hero-sub {
  font-size: 1rem;
  color: var(--muted);
  line-height: 1.7;
  max-width: 420px;
  font-weight: 300;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  align-items: center;
  flex-shrink: 0;
}

.btn-amber {
  background: var(--amber);
  color: var(--black);
  font-family: 'DM Sans', sans-serif;
  font-size: .9rem;
  font-weight: 700;
  padding: .8rem 1.75rem;
  border: none;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
  transition: opacity .2s, transform .15s;
}

.btn-amber:hover {
  opacity: .85;
  transform: translateY(-1px);
}

.btn-outline {
  background: transparent;
  color: var(--white);
  font-family: 'DM Sans', sans-serif;
  font-size: .9rem;
  font-weight: 500;
  padding: .8rem 1.75rem;
  border: 1px solid var(--divider);
  text-decoration: none;
  display: inline-block;
  transition: border-color .2s, color .2s;
}

.btn-outline:hover {
  border-color: rgba(255, 255, 255, .4);
  color: var(--white);
}

/* Scroll hint */
.scroll-hint {
  position: absolute;
  bottom: 2.5rem;
  right: 6vw;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .5rem;
  color: var(--muted);
  font-size: .8rem;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.scroll-line {
  width: 2px;
  height: 48px;
  /* Era var(--divider), branco a 10%: praticamente invisivel sobre o fundo.
     O gradiente deixa a ponta que "cai" acesa em ambar e a base suave. */
  background: linear-gradient(to bottom, rgba(245, 166, 35, 0), rgba(245, 166, 35, .45));
  border-radius: 1px;
  animation: scrollDrop 1.6s ease-in-out infinite;
}

@keyframes scrollDrop {
  0% {
    transform: scaleY(0);
    transform-origin: top;
  }

  50% {
    transform: scaleY(1);
    transform-origin: top;
  }

  51% {
    transform: scaleY(1);
    transform-origin: bottom;
  }

  100% {
    transform: scaleY(0);
    transform-origin: bottom;
  }
}

/* ── SECTION SHARED ── */
.s {
  padding: 96px 6vw;
}

.s-label {
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--amber);
  margin-bottom: 1.25rem;
}

.s-title {
  font-size: clamp(1.9rem, 3.8vw, 3rem);
  font-weight: 900;
  letter-spacing: -.035em;
  line-height: 1.1;
  margin-bottom: 1.25rem;
}

.s-sub {
  font-size: 1rem;
  color: var(--muted);
  line-height: 1.75;
  font-weight: 300;
  max-width: 520px;
}

.s-divider {
  height: 1px;
  background: var(--divider);
  margin: 0 6vw;
}

/* ── SOBRE ── */
#sobre {
  background: var(--black);
}

.sobre-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6rem;
  align-items: start;
  max-width: 1140px;
}

.sobre-right {
  padding-top: 1rem;
}

.sobre-quote {
  font-size: 1.5rem;
  font-weight: 300;
  font-style: italic;
  line-height: 1.5;
  color: rgba(255, 255, 255, .7);
  border-left: 2px solid var(--amber);
  padding-left: 1.5rem;
  margin-bottom: 3rem;
}

.sobre-facts {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.fact {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  padding: 1.25rem 0;
  border-bottom: 1px solid var(--divider);
}

.fact:first-child {
  border-top: 1px solid var(--divider);
}

.fact-val {
  font-size: 2rem;
  font-weight: 900;
  color: var(--amber);
  letter-spacing: -.04em;
}

.fact-desc {
  font-size: .95rem;
  color: var(--muted);
  line-height: 1.5;
  padding-top: .3rem;
}

/* ── SOLUÇÕES ── */
#solucoes {
  background: var(--surface);
}

.sol-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--divider);
  border-left: 1px solid var(--divider);
  max-width: 1140px;
}

.sol-grid-2col {
  grid-template-columns: repeat(2, 1fr);
}

.sol-item {
  padding: 2.5rem 2rem;
  border-right: 1px solid var(--divider);
  border-bottom: 1px solid var(--divider);
  transition: background .25s;
  cursor: default;
  display: block;
  color: inherit;
  text-decoration: none;
}

.sol-item:hover {
  background: rgba(245, 166, 35, .05);
}

.sol-item-link {
  cursor: pointer;
}

.sol-link-icon {
  font-size: .7rem;
  color: var(--amber);
  margin-left: .4rem;
  vertical-align: middle;
  opacity: .8;
}

.sol-glyph {
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
  display: block;
  filter: grayscale(1);
  transition: filter .25s;
}

.sol-item:hover .sol-glyph {
  filter: none;
}

.sol-name {
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: -.02em;
  margin-bottom: .6rem;
}

.sol-desc {
  font-size: .95rem;
  color: var(--muted);
  line-height: 1.65;
  font-weight: 300;
}

/* ── PARA QUEM ── */
#para-quem {
  background: var(--black);
}

.pq-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border-top: 1px solid var(--divider);
  max-width: 1140px;
}

.pq-grid-2col {
  grid-template-columns: repeat(2, 1fr);
}

.pq-col {
  padding: 3rem 2.5rem 3rem 0;
  border-right: 1px solid var(--divider);
}

.pq-col:last-child {
  border-right: none;
  padding-right: 0;
  padding-left: 2.5rem;
}

.pq-col:nth-child(2) {
  padding-left: 2.5rem;
}

.pq-role {
  font-size: .8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: var(--amber);
  margin-bottom: .75rem;
}

.pq-who {
  font-size: 1.5rem;
  font-weight: 900;
  letter-spacing: -.03em;
  margin-bottom: 1.25rem;
}

.pq-desc {
  font-size: .95rem;
  color: var(--muted);
  line-height: 1.7;
  font-weight: 300;
  margin-bottom: 1.5rem;
}

.pq-pills {
  display: flex;
  flex-wrap: wrap;
  gap: .4rem;
}

.pq-pill {
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .04em;
  padding: .3rem .75rem;
  border: 1px solid var(--divider);
  color: rgba(255, 255, 255, .8);
  /* Aumentado de .5 para .8 para contraste de leitura */
}

/* ── UNIVERSIDADES ── */
#universidades {
  background: var(--amber);
  color: var(--black);
}

#universidades .s-label {
  color: rgba(0, 0, 0, .75);
}

/* Aumentado de .45 para .75 para contraste WCAG AA */
#universidades .s-sub {
  color: rgba(0, 0, 0, .85);
}

/* ── SUBPÁGINA: FLUXO (reaproveita paleta da seção universidades) ── */
#fluxo {
  background: var(--amber);
  color: var(--black);
}

#fluxo .s-label {
  color: rgba(0, 0, 0, .75);
}

#cta-final {
  background: var(--amber);
  color: var(--black);
}

/* Aumentado de .6 para .85 para legibilidade superior */
.univ-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6rem;
  align-items: start;
  max-width: 1140px;
}

.univ-list {
  list-style: none;
  margin-top: 2.5rem;
}

.univ-li {
  display: flex;
  gap: 1.25rem;
  align-items: flex-start;
  padding: 1.25rem 0;
  border-bottom: 1px solid rgba(0, 0, 0, .12);
}

.univ-li:first-child {
  border-top: 1px solid rgba(0, 0, 0, .12);
}

.univ-li-num {
  font-size: .8rem;
  font-weight: 900;
  color: rgba(0, 0, 0, .65);
  /* Aumentado de .3 para .65 para melhor contraste em fundo âmbar */
  padding-top: .1rem;
  flex-shrink: 0;
  letter-spacing: .04em;
}

.univ-li-text {
  font-size: .95rem;
  line-height: 1.65;
  color: rgba(0, 0, 0, .75);
  font-weight: 400;
}

.univ-li-text strong {
  color: var(--black);
  font-weight: 700;
}

.univ-right {
  padding-top: 1rem;
}

.univ-cta-box {
  background: var(--black);
  color: var(--white);
  padding: 2.5rem;
  margin-top: 0;
}

.univ-cta-box h3 {
  font-size: 1.4rem;
  font-weight: 900;
  letter-spacing: -.03em;
  margin-bottom: .75rem;
}

.univ-cta-box p {
  font-size: .95rem;
  color: rgba(255, 255, 255, .85);
  /* Aumentado de .55 para .85 para conformidade de contraste */
  font-weight: 300;
  line-height: 1.65;
  margin-bottom: 1.75rem;
}

.btn-white {
  background: var(--white);
  color: var(--black);
  font-family: 'DM Sans', sans-serif;
  font-size: .9rem;
  font-weight: 700;
  padding: .8rem 1.75rem;
  border: none;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
  transition: opacity .2s;
}

.btn-white:hover {
  opacity: .85;
}

/* ── PRODUTO: VITRINE DE TELAS (reaproveitável em subpáginas de produto) ── */
#showcase {
  background: var(--black);
}

.showcase-intro {
  max-width: 700px;
  margin-bottom: 4rem;
}

.showcase-row {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 4.5rem;
  align-items: center;
  padding: 4rem 0;
  border-bottom: 1px solid var(--divider);
}

.showcase-row:first-of-type {
  padding-top: 0;
}

.showcase-row:last-of-type {
  border-bottom: none;
  padding-bottom: 0;
}

.showcase-row.reverse {
  grid-template-columns: 1fr 1.05fr;
}

.showcase-row.reverse .showcase-text {
  order: 2;
}

.showcase-row.reverse .showcase-frame {
  order: 1;
}

.showcase-note {
  max-width: 720px;
  padding: 4rem 0;
  border-bottom: 1px solid var(--divider);
}

.showcase-note p:not(.showcase-tag) {
  color: var(--muted);
  font-weight: 300;
  line-height: 1.7;
}

.showcase-frame {
  border: 1px solid var(--divider);
  background: var(--surface);
  overflow: hidden;
}

.showcase-frame-bar {
  display: flex;
  gap: 6px;
  padding: .7rem .9rem;
  border-bottom: 1px solid var(--divider);
}

.showcase-frame-bar span {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .15);
}

.showcase-frame img {
  width: 100%;
  display: block;
}

.showcase-frame-phone {
  max-width: 280px;
  margin: 0 auto;
  border-radius: 28px;
}

.showcase-frame-phone img {
  border-radius: 26px;
}

.showcase-tag {
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--amber);
  margin-bottom: .9rem;
}

.showcase-text h3 {
  font-size: 1.4rem;
  font-weight: 900;
  letter-spacing: -.03em;
  margin-bottom: 1rem;
  line-height: 1.25;
}

.showcase-text p {
  font-size: 1rem;
  color: var(--muted);
  line-height: 1.75;
  font-weight: 300;
}

.showcase-trio-block {
  padding: 4rem 0;
  border-bottom: 1px solid var(--divider);
}

.showcase-trio-block:last-of-type {
  border-bottom: none;
  padding-bottom: 0;
}

.showcase-trio-block .showcase-text {
  max-width: 640px;
  margin-bottom: 2.5rem;
}

.showcase-trio {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.showcase-trio-caption {
  margin-top: .9rem;
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: -.01em;
  text-align: center;
}

/* ── CONTATO ── */
#contato {
  background: var(--black);
}

.contato-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6rem;
  align-items: start;
  max-width: 1140px;
}

.contato-left .s-title {
  max-width: 380px;
}

.form {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.form-row-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
}

.field {
  display: flex;
  flex-direction: column;
  border-bottom: 1px solid var(--divider);
  transition: border-color .2s;
}

.field:focus-within {
  border-bottom-color: var(--amber);
}

.field-row-2 {
  border-right: 1px solid var(--divider);
}

/* Segunda coluna da linha de dois campos: o recuo afasta o conteudo da
   divisoria vertical. Empilhado, a divisoria some e o recuo tem que sumir
   junto, senao o campo nasce deslocado dos demais. */
.field-col-2 {
  padding-left: 1.5rem;
}

label {
  font-size: .875rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--muted);
  padding: 1.25rem 0 .4rem;
}

input,
select,
textarea {
  font-family: 'DM Sans', sans-serif;
  font-size: .95rem;
  font-weight: 400;
  color: var(--white);
  background: transparent;
  border: none;
  outline: none;
  box-shadow: none;
  padding: 0 0 1.25rem;
  width: 100%;
}

/* Fix do Autofill padrão dos navegadores (Chrome/Edge) em modo escuro */
input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus,
textarea:-webkit-autofill,
textarea:-webkit-autofill:hover,
textarea:-webkit-autofill:focus,
select:-webkit-autofill,
select:-webkit-autofill:hover,
select:-webkit-autofill:focus {
  -webkit-text-fill-color: var(--white) !important;
  -webkit-box-shadow: 0 0 0px 1000px #080808 inset !important;
  transition: background-color 5000s ease-in-out 0s !important;
  caret-color: var(--white);
}

input::placeholder,
textarea::placeholder {
  color: rgba(255, 255, 255, .55);
}

/* Aumentado de .2 para .55 para legibilidade do placeholder */
select {
  color: rgba(255, 255, 255, .85);
}

/* Aumentado de .5 para .85 para visibilidade do valor selecionado */
select option {
  background: var(--black);
  color: var(--white);
}

textarea {
  resize: none;
  height: 120px;
}

.form-submit {
  margin-top: 2.5rem;
  background: var(--amber);
  color: var(--black);
  font-family: 'DM Sans', sans-serif;
  font-size: .95rem;
  font-weight: 700;
  padding: 1rem 2rem;
  border: none;
  cursor: pointer;
  width: 100%;
  transition: opacity .2s;
  text-align: left;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.form-submit:hover {
  opacity: .85;
}

.form-submit span {
  font-size: 1.2rem;
}

/* ── FOOTER ── */
/* Bloco central do rodape (frase + contatos). Centralizado enquanto o rodape
   e uma linha; no mobile ele vira coluna e passa a alinhar a esquerda, junto
   com o logo e o copyright, para nao criar tres eixos de leitura. */
.footer-meio {
  text-align: center;
}

/* Contato do rodape: e-mail, WhatsApp e LinkedIn lado a lado. */
.footer-contato {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1.5rem;
  margin-top: .6rem;
}

.footer-contato a {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  color: var(--muted);
  text-decoration: none;
  font-size: .8rem;
  transition: color .2s;
}

.footer-contato a:hover {
  color: var(--amber);
}

.footer-contato i {
  font-size: 1rem;
  opacity: .8;
}

footer {
  border-top: 1px solid var(--divider);
  padding: 2.5rem 6vw;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-logo {
  display: flex;
  align-items: center;
}

.footer-logo svg {
  height: 28px;
  width: auto;
  color: var(--white);
}

footer p {
  font-size: .8rem;
  color: var(--muted);
}

/* ── REVEAL ── */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .65s ease, transform .65s ease;
}

.reveal.in {
  opacity: 1;
  transform: none;
}

.reveal-delay-1 {
  transition-delay: .1s;
}

.reveal-delay-2 {
  transition-delay: .2s;
}

.reveal-delay-3 {
  transition-delay: .3s;
}

/* ── RESPONSIVE ── */
@media(max-width:860px) {
  .nav-links {
    display: none;
  }

  .nav-hamburger {
    display: flex;
  }

  .nav-cta {
    display: none;
  }

  .nav-logo svg {
    height: 36px;
  }

  .s {
    padding: 64px 6vw;
  }

  .scroll-hint {
    display: none;
  }

  .hero-wordmark {
    width: 80vw;
  }

  .hero-bottom {
    flex-direction: column;
    align-items: flex-start;
  }

  .sobre-layout,
  .univ-layout,
  .contato-layout {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

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

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

  .pq-col,
  .pq-col:last-child,
  .pq-col:nth-child(2) {
    padding: 2rem 0;
    border-right: none;
    border-bottom: 1px solid var(--divider);
  }

  .form-row-2 {
    grid-template-columns: 1fr;
  }

  .field-row-2 {
    border-right: none;
  }

  .field-col-2 {
    padding-left: 0;
  }

  .showcase-row,
  .showcase-row.reverse {
    grid-template-columns: 1fr;
    gap: 1.75rem;
    padding: 2.5rem 0;
  }

  .showcase-note {
    padding: 2.5rem 0;
  }

  .showcase-row.reverse .showcase-text,
  .showcase-row.reverse .showcase-frame {
    order: initial;
  }

  .showcase-trio {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
}

@media(max-width:480px) {
  .s {
    padding: 52px 6vw;
  }

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

  .sol-item {
    padding: 2rem 1.5rem;
  }

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

  .hero-actions {
    width: 100%;
    flex-direction: column;
    align-items: stretch;
  }

  .btn-amber,
  .btn-outline {
    text-align: center;
  }

  .btn-outline {
    border-color: rgba(255, 255, 255, .3);
  }

  .footer-logo svg {
    height: 34px;
  }

  footer {
    flex-direction: column;
    /* Empilhado, o rodape centraliza tudo (logo, frase, contatos, copyright)
       em um eixo so. O bloco e curto e de fechamento, entao a simetria fecha
       melhor do que o alinhamento a esquerda do resto da pagina. */
    align-items: center;
    text-align: center;
    gap: 1.5rem;
  }
}

/* Janelas baixas (pouca altura útil de viewport: barra de favoritos, várias
   abas, monitor de resolução menor) empurram o hero-label pra fora da tela,
   já que #hero ancora o conteúdo embaixo (justify-content: flex-end) e tem
   overflow:hidden. Encolhe o título e centraliza o bloco pra tudo caber. */
@media(max-height:700px) {
  #hero {
    justify-content: center;
  }

  .hero-label {
    margin-bottom: 1rem;
  }

  .hero-title {
    font-size: clamp(2.2rem, 5vw, 4rem);
    margin-bottom: 1.25rem;
  }
}

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

  *,
  .reveal {
    animation: none !important;
    transition: none !important;
    opacity: 1 !important;
    transform: none !important;
  }
}

/* ── ACESSIBILIDADE E WIDGET ── */
.skip-link {
  position: absolute;
  top: -100px;
  left: 6vw;
  background: var(--amber);
  color: var(--black);
  padding: 0.6rem 1.2rem;
  z-index: 1000;
  font-weight: 700;
  text-decoration: none;
  font-size: 0.9rem;
  transition: top 0.2s ease;
}

.skip-link:focus {
  top: 10px;
}

*:focus-visible {
  outline: 3px solid var(--amber) !important;
  outline-offset: 4px;
}

/* Nas faixas de fundo âmbar o anel âmbar fica invisível: inverte pra preto. */
#universidades *:focus-visible,
#fluxo *:focus-visible,
#cta-final *:focus-visible {
  outline-color: var(--black) !important;
}

/* Modificadores de Body */
body.dyslexia-font {
  font-family: 'Lexend', sans-serif !important;
  letter-spacing: 0.05em !important;
  word-spacing: 0.12em !important;
}

body.dyslexia-font .s-sub,
body.dyslexia-font .hero-sub,
body.dyslexia-font p,
body.dyslexia-font li {
  line-height: 1.8 !important;
}

body.stop-animations * {
  transition: none !important;
  animation: none !important;
}

body.high-contrast {
  --black: #000000 !important;
  --white: #ffffff !important;
  --amber: #ffff00 !important;
  --amber-dim: rgba(255, 255, 0, 0.2) !important;
  --muted: #ffffff !important;
  --divider: #ffffff !important;
  --surface: #000000 !important;
  background: #000000 !important;
  color: #ffffff !important;
}

body.high-contrast * {
  border-color: #ffffff !important;
}

body.high-contrast .nav-cta,
body.high-contrast .btn-amber,
body.high-contrast .form-submit {
  background: #ffff00 !important;
  color: #000000 !important;
  border: 2px solid #ffffff !important;
}

body.high-contrast .btn-outline {
  border: 2px solid #ffffff !important;
  background: #000000 !important;
  color: #ffffff !important;
}

body.high-contrast select option {
  background: #000000 !important;
  color: #ffffff !important;
}

/* No alto contraste o botao segue a regra do modo, nao a cor propria do widget. */
body.high-contrast .acc-toggle-btn {
  background: #ffff00 !important;
  color: #000000 !important;
}

body.high-contrast .nav-logo .logo-amber {
  fill: #ffff00 !important;
}

body.high-contrast .nav-logo .logo-white {
  fill: #ffffff !important;
}

/* Estilo do Widget de Acessibilidade */
.acc-widget {
  /* Ancorado logo abaixo do botao do VLibras, que fica fixo na borda direita
     por volta da metade da altura da tela. */
  position: fixed;
  right: 9px;
  top: calc(50% + 30px);
  left: auto;
  bottom: auto;
  z-index: 10000;
  font-family: 'DM Sans', sans-serif;
}

.acc-toggle-btn {
  background: var(--a11y);
  color: var(--white);
  border: none;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s ease, background-color 0.2s;
}

.acc-toggle-btn svg {
  width: 26px;
  height: 26px;
  fill: currentColor;
  pointer-events: none;
}

.acc-toggle-btn:hover {
  transform: scale(1.05);
}

.acc-panel {
  /* Abre para a esquerda do botao e centralizado na tela: como o botao agora
     fica no meio da altura, ancorar por bottom estouraria o topo da viewport. */
  position: fixed;
  right: 64px;
  top: 50%;
  transform: translateY(-50%);
  left: auto;
  bottom: auto;
  max-height: 80vh;
  overflow-y: auto;
  width: 300px;
  background: rgba(15, 15, 15, 0.9);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 12px;
  padding: 1.25rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  color: var(--white);
  display: none;
  flex-direction: column;
  gap: 1rem;
}

.acc-panel.active {
  display: flex;
}

.acc-panel h3 {
  font-size: 1rem;
  font-weight: 700;
  border-bottom: 1px solid var(--divider);
  padding-bottom: 0.5rem;
  margin-bottom: 0.25rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.acc-close {
  background: transparent;
  border: none;
  color: var(--muted);
  cursor: pointer;
  font-size: 1.1rem;
}

.acc-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.acc-group-title {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--amber);
  letter-spacing: 0.05em;
}

.acc-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
}

.acc-btn {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--white);
  padding: 0.5rem;
  font-size: 0.8rem;
  font-weight: 500;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s;
  text-align: center;
}

.acc-btn:hover,
.acc-btn.active {
  background: var(--amber);
  color: var(--black);
  border-color: var(--amber);
}

/* Réguas e Máscaras de Leitura */
.reading-ruler {
  position: fixed;
  left: 0;
  right: 0;
  height: 8px;
  background: rgba(245, 166, 35, 0.35);
  border-top: 1.5px solid var(--amber);
  border-bottom: 1.5px solid var(--amber);
  pointer-events: none;
  z-index: 9999;
  display: none;
}

.reading-mask-top,
.reading-mask-bottom {
  position: fixed;
  left: 0;
  right: 0;
  background: rgba(0, 0, 0, 0.75);
  pointer-events: none;
  z-index: 9998;
  display: none;
}

.reading-mask-top {
  top: 0;
}

.reading-mask-bottom {
  bottom: 0;
}

/* Seletor de Idiomas (i18n) */
.lang-selector {
  display: inline-flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--divider);
  border-radius: 20px;
  padding: 3px;
  gap: 2px;
  user-select: none;
}

.lang-btn {
  background: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--muted);
  width: 26px;
  height: 26px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: background-color 0.2s, color 0.2s;
}

.lang-btn[data-lang="zh"] {
  font-size: 0.65rem;
}

.lang-btn:hover {
  color: var(--white);
}

.lang-btn.active {
  background: var(--white);
  color: var(--black);
}

/* Esconder seletor desktop no mobile */
@media(max-width: 860px) {
  .nav-desktop-lang {
    display: none;
  }
}

/* Em tela estreita o painel de 300px nao cabe ao lado do botao: ocupa a
   largura util e abre a partir da borda. */
@media(max-width:480px) {
  .acc-panel {
    right: 12px;
    left: 12px;
    width: auto;
  }
}