/* Barbnex — landing page. Cores e fonte do kit de marca (frontend/public/images/brand/LEIA-ME.md). */

:root {
  --navy: #0f1b33;
  --deep: #0b1426;
  --red: #c1121f;
  --red-dark-bg: #e63946;
  --ink: #0f1b33;
  --muted: #5b6477;
  --line: #e6e8ee;
  --soft: #f6f7fa;
  --white: #ffffff;
  --radius: 16px;
  --shadow: 0 1px 2px rgba(15, 27, 51, 0.06), 0 12px 40px rgba(15, 27, 51, 0.08);
  --wrap: 1160px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body {
  margin: 0;
  font-family: 'Manrope', system-ui, -apple-system, 'Segoe UI', sans-serif;
  color: var(--ink);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
}

h1,
h2,
h3 {
  line-height: 1.15;
  margin: 0;
  letter-spacing: -0.02em;
}

h1 {
  font-size: clamp(2.2rem, 5vw, 3.7rem);
  font-weight: 800;
}

h2 {
  font-size: clamp(1.8rem, 3.6vw, 2.6rem);
  font-weight: 800;
}

h3 {
  font-size: 1.15rem;
  font-weight: 700;
}

p {
  margin: 0;
}

.wrap {
  width: min(var(--wrap), 100% - 32px);
  margin-inline: auto;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.skip {
  position: absolute;
  left: -999px;
  top: 8px;
  background: var(--navy);
  color: var(--white);
  padding: 8px 14px;
  border-radius: 8px;
  z-index: 100;
}

.skip:focus {
  left: 8px;
}

:focus-visible {
  outline: 3px solid var(--red);
  outline-offset: 3px;
  border-radius: 6px;
}

.accent {
  color: var(--red);
}

.accent-light {
  color: var(--red-dark-bg);
}

.eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 14px;
}

.eyebrow--light {
  color: var(--red-dark-bg);
}

.lead {
  font-size: 1.12rem;
  color: var(--muted);
  max-width: 620px;
}

/* Botões */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
  border-radius: 999px;
  padding: 10px 20px;
  border: 1.5px solid transparent;
  transition: transform 0.15s ease, background 0.15s ease, border-color 0.15s ease;
  white-space: nowrap;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn--lg {
  padding: 14px 28px;
  font-size: 1rem;
}

.btn--primary {
  background: var(--navy);
  color: var(--white);
}

.btn--primary:hover {
  background: var(--deep);
}

.btn--ghost {
  border-color: var(--line);
  color: var(--navy);
  background: var(--white);
}

.btn--ghost:hover {
  border-color: var(--navy);
}

/* Topo */
.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease;
}

.topbar.is-scrolled {
  border-bottom-color: var(--line);
}

.topbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.brand img {
  height: 30px;
  width: auto;
}

.nav__list {
  display: flex;
  align-items: center;
  gap: 28px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav__list a:not(.btn) {
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--muted);
}

.nav__list a:not(.btn):hover {
  color: var(--navy);
}

.nav__cta + .nav__cta {
  margin-left: -16px;
}

.nav__toggle {
  display: none;
  background: none;
  border: 0;
  padding: 10px;
  cursor: pointer;
}

.nav__toggle span:not(.sr-only) {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--navy);
  margin: 5px 0;
  border-radius: 2px;
  transition: transform 0.2s ease;
}

/* Abertura */
.hero {
  padding: 72px 0 40px;
  overflow: hidden;
}

.hero__grid {
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: 56px;
  align-items: center;
}

.hero__text h1 {
  margin-bottom: 20px;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

.hero__actions--center {
  justify-content: center;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  list-style: none;
  padding: 0;
  margin: 28px 0 0;
}

.chips li {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--muted);
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--soft);
}

.chips li::before {
  content: '';
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--red);
  margin-right: 8px;
  vertical-align: middle;
}

/* Moldura das telas */
.frame {
  margin: 0;
  border-radius: var(--radius);
  background: var(--white);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.hero__shot .frame {
  transform: perspective(1600px) rotateY(-6deg) rotateX(2deg);
  max-width: 600px;
  margin-inline: auto;
}

.hero__shot .frame img {
  width: 100%;
}

.frame__bar {
  display: flex;
  gap: 6px;
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
  background: var(--soft);
}

.frame__bar i {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #d6d9e1;
}

.frame--sm {
  max-width: 520px;
  justify-self: center;
}

/* Credenciais */
.proof {
  padding: 40px 0;
}

.proof__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 36px 0;
}

.proof__item {
  display: flex;
  align-items: baseline;
  gap: 14px;
}

.proof__item strong {
  font-size: 2.6rem;
  font-weight: 800;
  color: var(--navy);
  letter-spacing: -0.03em;
}

.proof__item span {
  color: var(--muted);
  font-weight: 500;
}

/* Seções */
.section {
  padding: 104px 0;
}

.section--soft {
  background: var(--soft);
}

.section--dark {
  background: var(--deep);
  color: var(--white);
}

.section--dark .lead {
  color: #a9b2c6;
}

.section__head {
  max-width: 720px;
  margin-bottom: 56px;
}

.section__head h2 {
  margin-bottom: 16px;
}

/* Recursos */
.features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.feature {
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.feature:hover {
  border-color: #cfd4df;
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}

.feature h3 {
  margin: 18px 0 8px;
}

.feature p {
  color: var(--muted);
  font-size: 0.97rem;
}

.feature__icon {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: #fbecee;
}

.feature__icon svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: var(--red);
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Destaque: ocupa a linha inteira da grade */
.feature--wide {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 40px;
  align-items: center;
}

.feature--wide .checks {
  margin: 0;
}

.feature__badge {
  display: inline-block;
  margin-left: 8px;
  padding: 2px 10px;
  border-radius: 999px;
  background: var(--red);
  color: var(--white);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  vertical-align: middle;
}

/* Como funciona */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.split + .split {
  margin-top: 96px;
}

.split--reverse .split__text {
  order: 2;
}

.split__text h3 {
  font-size: 1.6rem;
  font-weight: 800;
  margin: 14px 0 12px;
}

.split__text > p {
  color: var(--muted);
  font-size: 1.05rem;
}

.step {
  display: inline-grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--navy);
  color: var(--white);
  font-weight: 800;
}

.checks {
  list-style: none;
  padding: 0;
  margin: 24px 0 0;
  display: grid;
  gap: 10px;
}

.checks li {
  position: relative;
  padding-left: 30px;
  font-weight: 500;
}

.checks li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 4px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--navy) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12l4 4 8-8'/%3E%3C/svg%3E") center / 12px no-repeat;
}

.stats-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  max-width: 520px;
  justify-self: center;
  width: 100%;
}

.stats-card > div {
  background: var(--white);
  padding: 26px;
  display: grid;
  gap: 4px;
}

.stats-card small {
  color: var(--muted);
  font-weight: 600;
}

.stats-card b {
  font-size: 1.6rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.stats-card em {
  font-style: normal;
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--muted);
}

.stats-card em.up {
  color: #1f8a4c;
}

.stats-card__note {
  grid-column: 1 / -1;
  background: var(--soft) !important;
  padding: 10px 26px !important;
  font-size: 0.8rem;
  color: var(--muted);
}

/* Para quem */
.roles {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.role {
  padding: 28px 24px;
  border-radius: var(--radius);
  background: var(--soft);
}

.role h3 {
  margin-bottom: 10px;
  font-size: 1.25rem;
}

.role h3::after {
  content: '';
  display: block;
  width: 28px;
  height: 3px;
  background: var(--red);
  border-radius: 3px;
  margin-top: 12px;
}

.role p {
  color: var(--muted);
}

/* Quem fez */
.makers {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.maker {
  padding: 40px;
  border-radius: var(--radius);
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.03);
}

.maker strong {
  display: block;
  font-size: clamp(2.6rem, 5vw, 3.6rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--white);
}

.maker h3 {
  margin: 6px 0 14px;
  color: var(--red-dark-bg);
}

.maker p {
  color: #a9b2c6;
}

/* Chamada final */
.cta {
  padding: 112px 0;
  text-align: center;
}

.cta__inner {
  display: grid;
  justify-items: center;
  gap: 18px;
}

.cta__inner img {
  margin-bottom: 6px;
}

.cta .lead {
  margin-inline: auto;
}

/* Contato */
.contacts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  width: 100%;
  max-width: 720px;
  margin-top: 12px;
}

.contact {
  display: grid;
  justify-items: center;
  gap: 6px;
  padding: 28px 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  color: var(--ink);
  text-decoration: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.contact:hover {
  border-color: #cfd4df;
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}

.contact strong {
  font-size: 1.1rem;
  overflow-wrap: anywhere;
}

.contact__icon {
  display: inline-grid;
  place-items: center;
  width: 48px;
  height: 48px;
  margin-bottom: 6px;
  border-radius: 12px;
  background: #fbecee;
}

.contact__icon svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: var(--red);
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.contact__label {
  color: var(--muted);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.contact__hint {
  color: var(--red);
  font-weight: 700;
  font-size: 0.95rem;
}

.cta__client {
  margin-top: 8px;
  color: var(--muted);
}

.cta__client a {
  color: var(--ink);
  font-weight: 700;
}

/* Rodapé */
.footer {
  background: var(--deep);
  color: #a9b2c6;
  padding: 32px 0;
  font-size: 0.9rem;
}

.footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.footer__links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
}

.footer a {
  color: var(--white);
  font-weight: 600;
  text-decoration: none;
}

/* Animação ao rolar (sem animação para quem prefere menos movimento) */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .reveal,
  .reveal.is-visible {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .hero__shot .frame {
    transform: none;
  }
}

/* Sem JavaScript: tudo visível */
.no-js .reveal {
  opacity: 1;
  transform: none;
}

/* Tablet */
@media (max-width: 1024px) {
  .features {
    grid-template-columns: repeat(2, 1fr);
  }

  .roles {
    grid-template-columns: repeat(2, 1fr);
  }

  .hero__grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .hero__shot .frame {
    transform: none;
  }
}

/* Celular */
@media (max-width: 760px) {
  .nav__toggle {
    display: block;
  }

  .nav__list {
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    padding: 16px;
    background: var(--white);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow);
    display: none;
  }

  .nav__list.is-open {
    display: flex;
  }

  .nav__list a:not(.btn) {
    display: block;
    padding: 10px 4px;
  }

  .nav__cta + .nav__cta {
    margin-left: 0;
  }

  .nav__cta .btn {
    width: 100%;
  }

  .hero {
    padding-top: 40px;
  }

  .proof__grid,
  .feature--wide {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .contacts {
    grid-template-columns: 1fr;
  }

  .features,
  .roles,
  .makers,
  .split {
    grid-template-columns: 1fr;
  }

  .split {
    gap: 32px;
  }

  .split--reverse .split__text {
    order: 0;
  }

  .section {
    padding: 72px 0;
  }

  .maker {
    padding: 28px;
  }

  .stats-card b {
    font-size: 1.25rem;
  }

  .stats-card > div {
    padding: 18px;
  }
}
