/* ==========================================================================
   Aura Performance Digital — landing page
   Proporção de cor: 70% ônix · 25% pérola · 5% halo
   ========================================================================== */

:root {
  --onix: #0E0F12;
  --grafite: #17191E;
  --perola: #F3F1EC;
  --halo: #C8B28A;
  --halo-profundo: #8A7143;
  --accent-claro: #735D33;
  --cinza: #9A9CA3;
  --cinza-claro: #5C5E66;
  --linha: #2B2E35;
  --nevoa: #E6DAC3;
  --linha-claro: rgba(14, 15, 18, .14);

  --serif: "Instrument Serif", "Times New Roman", Georgia, serif;
  --sans: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;

  --gutter: clamp(20px, 5vw, 56px);
  --header-h: 68px;
  --section-y: clamp(72px, 9vw + 24px, 140px);
}

*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: calc(var(--header-h) + 8px);
}

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  margin: 0;
  background: var(--onix);
  color: var(--perola);
  font: 400 17px/1.65 var(--sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }
h1, h2, h3, p, ul, ol { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; }
p { max-width: 62ch; }

:focus-visible {
  outline: 2px solid var(--halo);
  outline-offset: 2px;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -80px;
  z-index: 100;
  padding: 12px 18px;
  background: var(--halo);
  color: var(--onix);
  font-weight: 700;
  text-decoration: none;
  border-radius: 2px;
}
.skip-link:focus { top: 12px; }

.container {
  width: 100%;
  max-width: 1200px;
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* --------------------------------------------------------------------------
   Tipografia
   -------------------------------------------------------------------------- */
.eyebrow {
  font: 600 12px/1.4 var(--sans);
  text-transform: uppercase;
  letter-spacing: .22em;
  color: var(--halo);
  margin-bottom: 24px;
}

.title,
.hero__title,
.card__title,
.step__title,
.case__title {
  font-family: var(--serif);
  font-weight: 400;
  letter-spacing: -.01em;
  text-wrap: balance;
}

.title {
  font-size: clamp(34px, 4.5vw, 56px);
  line-height: 1.08;
  max-width: 18ch;
}

.title em,
.hero__title em {
  font-style: italic;
  color: var(--halo);
}

/* --------------------------------------------------------------------------
   Botões
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 15px 28px;
  border: 1px solid transparent;
  border-radius: 2px;
  font: 700 13px/1.3 var(--sans);
  text-transform: uppercase;
  letter-spacing: .14em;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: background-color .2s ease, border-color .2s ease, color .2s ease;
}

.btn--primary {
  background: var(--halo);
  color: var(--onix);
}
.btn--primary:hover { background: var(--nevoa); }

.btn--secondary {
  border-color: var(--halo);
  color: var(--perola);
  background: transparent;
}
.btn--secondary:hover { background: rgba(200, 178, 138, .12); }

.btn--sm {
  min-height: 44px;
  padding: 11px 20px;
  font-size: 12px;
}

/* --------------------------------------------------------------------------
   Header
   -------------------------------------------------------------------------- */
.header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: background-color .25s ease, border-color .25s ease;
}

.header.is-scrolled {
  background: rgba(14, 15, 18, .86);
  border-bottom-color: var(--linha);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
}
.header.is-open {
  background: var(--onix);
  border-bottom-color: var(--linha);
}

/* Sem JS: header comum (não fixo) e sem botão de menu; a navegação fica visível. */
html:not(.js) .header { position: relative; background: var(--onix); }
html:not(.js) .menu-toggle { display: none; }

.header__bar {
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.header__logo { display: block; flex: none; }
.header__logo img { height: 44px; width: auto; }

.menu-toggle { display: none; }

/* Navegação: sem JS fica sempre visível; com JS vira menu no mobile. */
.nav {
  display: flex;
  align-items: center;
  gap: 40px;
}

.nav__list {
  display: flex;
  gap: 36px;
}

.nav__list a {
  display: inline-block;
  padding: 8px 0;
  font-size: 14px;
  font-weight: 600;
  color: var(--perola);
  text-decoration: none;
  background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat;
  transition: background-size .25s ease;
}
.nav__list a:hover { background-size: 100% 1px; }

@media (max-width: 899px) {
  .header__bar { flex-wrap: wrap; height: auto; min-height: var(--header-h); padding-block: 12px; }

  .menu-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    margin-right: -10px;
    padding: 0;
    background: transparent;
    border: 0;
    color: var(--perola);
    cursor: pointer;
  }

  .menu-toggle__bars,
  .menu-toggle__bars::before,
  .menu-toggle__bars::after {
    display: block;
    width: 22px;
    height: 1.5px;
    background: currentColor;
    transition: transform .25s ease, background-color .2s ease;
  }
  .menu-toggle__bars { position: relative; }
  .menu-toggle__bars::before,
  .menu-toggle__bars::after { content: ""; position: absolute; left: 0; }
  .menu-toggle__bars::before { top: -7px; }
  .menu-toggle__bars::after { top: 7px; }

  .menu-toggle[aria-expanded="true"] .menu-toggle__bars { background: transparent; }
  .menu-toggle[aria-expanded="true"] .menu-toggle__bars::before { transform: translateY(7px) rotate(45deg); }
  .menu-toggle[aria-expanded="true"] .menu-toggle__bars::after { transform: translateY(-7px) rotate(-45deg); }

  .nav {
    flex-basis: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 24px;
    padding: 8px 0 20px;
  }
  .nav__list { flex-direction: column; gap: 0; }
  .nav__list li + li { border-top: 1px solid var(--linha); }
  .nav__list a { display: block; padding: 16px 0; font-size: 18px; background: none; }

  /* Só esconde o menu quando o JS está ativo */
  .js .nav { display: none; }
  .js .header.is-open .nav { display: flex; }
}

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  display: flex;
  align-items: center;
  min-height: clamp(600px, 100svh, 940px);
  padding: calc(var(--header-h) + 64px) 0 96px;
  overflow: hidden;
  isolation: isolate;
}

.hero__scene {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
}

.hero__symbol {
  --sym: clamp(520px, min(62vw, calc(100svh - 120px)), 940px);
  position: absolute;
  width: var(--sym);
  height: var(--sym);
  top: calc(50% + var(--header-h) / 2);
  margin-top: calc(var(--sym) / -2);
  right: calc(var(--sym) * -.36);
  max-width: none;
  transform-origin: 50% 50%;
  overflow: visible;
}

@media (prefers-reduced-motion: no-preference) {
  .hero__symbol { animation: breathe 6s ease-in-out infinite alternate; }
}
@keyframes breathe {
  from { transform: scale(1); }
  to   { transform: scale(1.02); }
}

.hero__content { position: relative; }

.hero__title {
  font-size: clamp(44px, 7vw, 88px);
  line-height: 1.02;
  max-width: 12.5em;
  margin-bottom: 32px;
}

.hero__lead {
  font-size: clamp(17px, 1.6vw, 19px);
  max-width: 44ch;
  margin-bottom: 44px;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

/* --------------------------------------------------------------------------
   Seções
   -------------------------------------------------------------------------- */
.section {
  position: relative;
  padding-block: var(--section-y);
  overflow: hidden;
}
.section > .container { position: relative; z-index: 1; }

.section--dark { background: var(--onix); color: var(--perola); }
.section--dark + .section--dark { border-top: 1px solid var(--linha); }

.section--light {
  background: var(--perola);
  color: var(--onix);
}
.section--light .eyebrow { color: var(--accent-claro); }
.section--light .title em { color: var(--accent-claro); }
.section--light :focus-visible { outline-color: var(--accent-claro); }

.section__head { margin-bottom: clamp(48px, 6vw, 80px); }

/* Anel fino saindo por um canto (centro no canto da seção) */
.has-ring { --ring: clamp(280px, 32vw, 440px); }
.has-ring::before {
  content: "";
  position: absolute;
  z-index: 0;
  width: var(--ring);
  aspect-ratio: 1;
  border: 1px solid rgba(200, 178, 138, .32);
  border-radius: 50%;
  pointer-events: none;
}
.section--light.has-ring::before { border-color: rgba(138, 113, 67, .42); }

.ring--top-right::before    { top: calc(var(--ring) * -.5);    right: calc(var(--ring) * -.5); }
.ring--bottom-left::before  { bottom: calc(var(--ring) * -.5); left: calc(var(--ring) * -.5); }
.ring--bottom-right::before { bottom: calc(var(--ring) * -.5); right: calc(var(--ring) * -.5); }

/* Duas colunas: título à esquerda, conteúdo à direita */
.split { display: grid; gap: 48px; }

@media (min-width: 900px) {
  .split { grid-template-columns: 5fr 6fr; gap: 80px; align-items: start; }
  .split--faq { grid-template-columns: 4fr 7fr; }
}

.split__head .title { margin-top: 0; }

/* --------------------------------------------------------------------------
   O problema
   -------------------------------------------------------------------------- */
.points li {
  padding: 26px 0;
  border-top: 1px solid var(--linha-claro);
  font-size: clamp(18px, 1.7vw, 21px);
  font-weight: 600;
  line-height: 1.5;
  max-width: 34ch;
}
.points li:last-child { border-bottom: 1px solid var(--linha-claro); }

.points__note {
  margin-top: 32px;
  color: var(--cinza-claro);
}

/* --------------------------------------------------------------------------
   O que fazemos
   -------------------------------------------------------------------------- */
.cards {
  display: grid;
  gap: 20px;
}
@media (min-width: 900px) {
  .cards { grid-template-columns: repeat(3, 1fr); gap: 24px; }
}

.card {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 40px 32px 44px;
  background: var(--grafite);
  border: 1px solid var(--linha);
  border-radius: 0;
  transition: border-color .25s ease;
}
.card:hover { border-color: var(--halo-profundo); }
.card::before {
  content: "";
  width: 28px;
  height: 1px;
  margin-bottom: 40px;
  background: var(--halo);
}
.card__title { font-size: clamp(30px, 3vw, 36px); line-height: 1.1; }
.card p { color: var(--cinza); }

/* --------------------------------------------------------------------------
   Como funciona
   -------------------------------------------------------------------------- */
.steps { display: grid; gap: 0; }

@media (min-width: 600px) {
  .steps { grid-template-columns: repeat(2, 1fr); column-gap: 32px; }
}
@media (min-width: 900px) {
  .steps { grid-template-columns: repeat(4, 1fr); }
}

.step {
  padding: 28px 0 32px;
  border-top: 1px solid var(--linha);
}
.step__num {
  display: block;
  margin-bottom: 20px;
  font: 400 44px/1 var(--serif);
  color: var(--halo);
}
.step__title {
  margin-bottom: 12px;
  font-size: clamp(25px, 2.2vw, 28px);
  line-height: 1.15;
}
.step p { color: var(--cinza); font-size: 16px; }

/* --------------------------------------------------------------------------
   Portfólio
   -------------------------------------------------------------------------- */
.case {
  display: grid;
  background: var(--grafite);
  border: 1px solid var(--linha);
}
@media (min-width: 900px) {
  .case { grid-template-columns: 7fr 5fr; }
}

.case__media {
  position: relative;
  display: grid;
  align-items: end;
  justify-items: start;
  padding: 20px 24px;
  width: 100%;
  aspect-ratio: 16 / 10;
  background: var(--onix);
  border-bottom: 1px solid var(--linha);
  overflow: hidden;
}
@media (min-width: 900px) {
  .case__media { border-bottom: 0; border-right: 1px solid var(--linha); aspect-ratio: auto; min-height: 420px; }
}
.case__mark {
  position: absolute;
  inset: 0;
  margin: auto;
  width: auto;
  max-width: none;
  height: 84%;
  aspect-ratio: 1;
}
.case__placeholder {
  position: relative;
  font: 600 12px/1.4 var(--sans);
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--cinza);
}

.case__body {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 16px;
  padding: 40px 28px 44px;
}
@media (min-width: 900px) {
  .case__body { padding: 56px 48px; }
}

.pill {
  display: inline-block;
  padding: 6px 16px 6px 18px;
  border: 1px solid var(--halo);
  border-radius: 999px;
  font: 600 12px/1.4 var(--sans);
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--halo);
}
.case__title { font-size: clamp(32px, 3.4vw, 44px); line-height: 1.08; }
.case__type { color: var(--cinza); margin-bottom: 8px; }

.link-arrow {
  display: inline-block;
  padding: 6px 0;
  font-weight: 700;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: .14em;
  text-decoration: none;
  border-bottom: 1px solid var(--halo);
  transition: color .2s ease, border-color .2s ease;
}
.link-arrow:hover { color: var(--halo); }

/* --------------------------------------------------------------------------
   Para quem é
   -------------------------------------------------------------------------- */
.audience { display: grid; }
@media (min-width: 900px) {
  .audience { grid-template-columns: repeat(3, 1fr); gap: 32px; }
}
.audience li {
  padding: 28px 0 32px;
  border-top: 1px solid var(--linha);
  font: 400 clamp(30px, 3.2vw, 40px)/1.1 var(--serif);
  letter-spacing: -.01em;
}
.audience__note {
  margin-top: 40px;
  color: var(--cinza);
  font-size: clamp(17px, 1.6vw, 19px);
}

/* --------------------------------------------------------------------------
   FAQ
   -------------------------------------------------------------------------- */
.faq details { border-top: 1px solid var(--linha); }
.faq details:last-child { border-bottom: 1px solid var(--linha); }

.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 26px 0;
  font-size: clamp(17px, 1.6vw, 19px);
  font-weight: 600;
  line-height: 1.4;
  cursor: pointer;
  list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary:focus-visible { outline-offset: 4px; }

.faq__icon {
  position: relative;
  flex: none;
  width: 16px;
  height: 16px;
  color: var(--halo);
}
.faq__icon::before,
.faq__icon::after {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 100%;
  height: 1.5px;
  background: currentColor;
  transition: transform .25s ease;
}
.faq__icon::after { transform: rotate(90deg); }
.faq details[open] .faq__icon::after { transform: rotate(0deg); }

.faq__body { padding: 0 40px 28px 0; color: var(--cinza); }

/* --------------------------------------------------------------------------
   CTA final
   -------------------------------------------------------------------------- */
.cta { text-align: center; }
.cta__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.cta .title { max-width: 16ch; margin: 0 auto 44px; }
.cta .btn--primary { border-color: var(--halo-profundo); }
.cta .btn--primary:hover { background: var(--nevoa); }
.cta__note {
  margin: 28px auto 0;
  font-size: 15px;
  color: var(--cinza-claro);
}

/* --------------------------------------------------------------------------
   Rodapé
   -------------------------------------------------------------------------- */
.footer {
  background: var(--onix);
  border-top: 1px solid var(--linha);
  padding: 64px 0 48px;
}
.footer__inner {
  display: grid;
  gap: 32px;
  align-items: center;
}
@media (min-width: 900px) {
  .footer__inner { grid-template-columns: 1fr auto 1fr; }
  .footer__copy { justify-self: end; }
}
.footer__logo img { height: 40px; width: auto; }
.footer__links { display: flex; flex-wrap: wrap; gap: 8px 32px; }
.footer__links a {
  display: inline-block;
  padding: 8px 0;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color .2s ease;
}
.footer__links a:hover { color: var(--halo); }
.footer__copy { font-size: 14px; color: var(--cinza); }

/* --------------------------------------------------------------------------
   WhatsApp flutuante (só mobile)
   -------------------------------------------------------------------------- */
.wa-float {
  position: fixed;
  right: 16px;
  bottom: max(16px, env(safe-area-inset-bottom));
  z-index: 40;
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  background: var(--onix);
  border: 1px solid var(--halo);
  border-radius: 50%;
  color: var(--halo);
  transition: opacity .25s ease, transform .25s ease, background-color .2s ease;
}
.wa-float:hover { background: var(--grafite); }
.js .wa-float { opacity: 0; transform: translateY(12px); pointer-events: none; }
.js .wa-float.is-visible { opacity: 1; transform: none; pointer-events: auto; }

@media (min-width: 768px) {
  .wa-float { display: none; }
}
@media (max-width: 767px) {
  .footer { padding-bottom: 96px; }
}

/* --------------------------------------------------------------------------
   Entrada ao rolar
   O conteúdo é visível por padrão. O JS só esconde (.reveal--wait) o que
   está abaixo da dobra e revela ao entrar na tela.
   -------------------------------------------------------------------------- */
.reveal {
  transition: opacity .7s ease var(--d, 0s), transform .7s ease var(--d, 0s);
}
.reveal--wait {
  opacity: 0;
  transform: translateY(12px);
}
.reveal--wait.is-in {
  opacity: 1;
  transform: none;
}

/* --------------------------------------------------------------------------
   Mobile: ajustes finos
   -------------------------------------------------------------------------- */
@media (max-width: 599px) {
  body { font-size: 16px; }
  .hero { padding-top: calc(var(--header-h) + 40px); padding-bottom: 72px; align-items: flex-end; min-height: 100svh; }
  .hero__symbol { --sym: 560px; right: -250px; top: 0; margin-top: -140px; }
  .has-ring { --ring: 150px; }
  .hero__actions { flex-direction: column; align-items: stretch; }
  .btn { padding-inline: 20px; font-size: 12px; letter-spacing: .12em; }
  .case__body { padding: 32px 24px 36px; }
  .card { padding: 32px 24px 36px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation: none !important;
    transition-duration: .01ms !important;
  }
}
