/* ==========================================================================
   Legado 7 — Hero da Home
   Tokens: marca/tokens.css (paleta ONM). Fontes: Montserrat + JetBrains Mono.
   ========================================================================== */

:root {
  --l7-rosa: #E60B4F;
  --l7-rosa-glow: #FF1A5E;
  --l7-abismo: #050419;
  --l7-navy: #071E41;
  --l7-azul-profundo: #041F57;
  --l7-violeta: #411651;
  --l7-magenta: #A4054E;
  --l7-branco: #FFFFFF;
  --l7-texto-suave: #A9AECB;
  --l7-texto: #C3C7DD;
  --l7-linha: rgba(255, 255, 255, .10);

  --l7-fonte: 'Montserrat', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --l7-mono: 'JetBrains Mono', ui-monospace, 'SF Mono', Menlo, monospace;

  --header-h: 80px;
  --gutter: clamp(20px, 4vw, 48px);
  --max: 1280px;
  --ease: cubic-bezier(.2, .8, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: var(--header-h); }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0;
  background: var(--l7-abismo);
  color: var(--l7-branco);
  font-family: var(--l7-fonte);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--l7-branco); outline-offset: 3px; border-radius: 4px; }

.skip-link {
  position: absolute; left: 16px; top: -100px; z-index: 100;
  background: var(--l7-branco); color: var(--l7-abismo);
  padding: 10px 16px; border-radius: 6px; font-weight: 700; text-decoration: none;
}
.skip-link:focus { top: 16px; }

/* --------------------------------------------------------------------------
   Botões
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 54px; padding: 16px 20px; border-radius: 8px;
  font: 700 13px/1.2 var(--l7-fonte); letter-spacing: .045em; text-transform: uppercase;
  text-decoration: none; text-align: center;
  transition: background-color .25s var(--ease), border-color .25s var(--ease),
              box-shadow .25s var(--ease), transform .25s var(--ease);
}
.btn__arrow { display: inline-block; transition: transform .25s var(--ease); }
.btn:hover .btn__arrow { transform: translateX(4px); }

.btn--primary {
  background: var(--l7-rosa); color: var(--l7-branco);
  box-shadow: 0 0 0 1px rgba(255, 26, 94, .4), 0 10px 32px -8px rgba(230, 11, 79, .65);
}
.btn--primary:hover {
  background: var(--l7-rosa-glow); transform: translateY(-2px);
  box-shadow: 0 0 0 1px rgba(255, 26, 94, .6), 0 16px 40px -8px rgba(255, 26, 94, .8);
}
.btn--ghost {
  color: var(--l7-branco); background: rgba(255, 255, 255, .03);
  border: 1px solid rgba(255, 255, 255, .22);
}
.btn--ghost:hover { border-color: var(--l7-rosa-glow); background: rgba(255, 26, 94, .06); transform: translateY(-2px); }
.btn--sm { min-height: 44px; padding: 12px 20px; font-size: 12px; }

/* --------------------------------------------------------------------------
   Cabeçalho
   -------------------------------------------------------------------------- */
.site-header {
  position: fixed; inset: 0 0 auto; z-index: 50;
  height: var(--header-h);
  transition: background-color .35s var(--ease), border-color .35s var(--ease), backdrop-filter .35s var(--ease);
  border-bottom: 1px solid transparent;
}
.site-header.is-scrolled {
  background: rgba(5, 4, 25, .72);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  backdrop-filter: blur(14px) saturate(140%);
  border-bottom-color: var(--l7-linha);
}
.site-header__inner {
  height: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter);
  display: flex; align-items: center; justify-content: space-between; gap: 32px;
}
.site-header__logo { flex: none; display: block; width: 148px; }
.site-header__logo img { width: 100%; height: auto; }

.site-nav { display: flex; align-items: center; gap: 36px; }
.site-nav__list { display: flex; gap: 30px; margin: 0; padding: 0; list-style: none; }
.site-nav__list a {
  position: relative; display: inline-block; padding: 8px 0;
  font-size: 14px; font-weight: 500; text-decoration: none; color: rgba(255, 255, 255, .78);
  transition: color .2s var(--ease);
}
.site-nav__list a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 2px; height: 1px;
  background: var(--l7-rosa-glow); transform: scaleX(0); transform-origin: left;
  transition: transform .3s var(--ease);
}
.site-nav__list a:hover, .site-nav__list a[aria-current="page"] { color: var(--l7-branco); }
.site-nav__list a:hover::after, .site-nav__list a[aria-current="page"]::after { transform: scaleX(1); }

.menu-toggle {
  display: none; align-items: center; gap: 10px;
  min-height: 44px; padding: 0 4px; border: 0; background: none; color: var(--l7-branco);
  font: 600 13px var(--l7-fonte); letter-spacing: .08em; text-transform: uppercase; cursor: pointer;
}
.menu-toggle__bars, .menu-toggle__bars::before, .menu-toggle__bars::after {
  display: block; width: 22px; height: 2px; background: currentColor; border-radius: 2px;
  transition: transform .3s var(--ease), opacity .2s;
}
.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); }

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */
.hero {
  position: relative; isolation: isolate; overflow: clip;
  min-height: 100vh; min-height: 100svh;
  display: grid; grid-template-rows: 1fr auto;
  padding: calc(var(--header-h) + clamp(16px, 4vh, 48px)) var(--gutter) 0;
}
.hero__bg {
  position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(60% 60% at 0% 0%, rgba(7, 30, 65, .9), transparent 70%),
    radial-gradient(45% 55% at 78% 42%, rgba(164, 5, 78, .28), rgba(65, 22, 81, .14) 50%, transparent 75%),
    radial-gradient(70% 40% at 50% 110%, rgba(4, 31, 87, .55), transparent 70%),
    var(--l7-abismo);
}
.hero__bg::after { /* grade de pontos muito discreta no lado do texto */
  content: ""; position: absolute; inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, .06) 1px, transparent 1.1px);
  background-size: 28px 28px;
  -webkit-mask-image: radial-gradient(50% 60% at 20% 45%, #000, transparent 75%);
  mask-image: radial-gradient(50% 60% at 20% 45%, #000, transparent 75%);
}

.hero__inner {
  width: 100%; max-width: var(--max); margin: 0 auto;
  display: grid; grid-template-columns: minmax(0, 55fr) minmax(0, 45fr);
  align-items: center; gap: clamp(24px, 3vw, 56px);
}

/* Texto ------------------------------------------------------------------ */
.hero__content { padding: clamp(16px, 4vh, 48px) 0; }

.hero__eyebrow {
  display: inline-flex; align-items: center; gap: 14px; margin: 0 0 28px;
  font-size: 12px; font-weight: 700; letter-spacing: .24em; text-transform: uppercase;
  color: var(--l7-branco);
}
.hero__eyebrow-mark { display: inline-flex; align-items: flex-end; gap: 3px; height: 14px; }
.hero__eyebrow-mark i { display: block; width: 4px; background: var(--l7-rosa); border-radius: 1px; box-shadow: 0 0 8px rgba(255, 26, 94, .6); }
.hero__eyebrow-mark i:nth-child(1) { height: 6px; opacity: .55; }
.hero__eyebrow-mark i:nth-child(2) { height: 10px; opacity: .8; }
.hero__eyebrow-mark i:nth-child(3) { height: 14px; }

.hero__title {
  margin: 0; max-width: 17em;
  font-weight: 800; font-size: clamp(32px, 2.6vw + 14px, 56px);
  line-height: 1.07; letter-spacing: -.025em;
  text-wrap: balance;
}
.hero__title-lead { display: block; font-weight: 700; color: var(--l7-texto); }
.hero__title-punch { display: block; margin-top: .22em; color: var(--l7-branco); }
.hero__highlight {
  position: relative; display: inline-block; font-style: normal; color: var(--l7-rosa-glow);
  text-shadow: 0 0 32px rgba(255, 26, 94, .35);
}
/* "Estrutura": linha com nós, como uma conexão do sistema */
.hero__highlight::after {
  content: ""; position: absolute; left: .04em; right: .04em; bottom: -.02em; height: .06em; min-height: 3px;
  background: linear-gradient(90deg, var(--l7-magenta), var(--l7-rosa-glow));
  border-radius: 2px; transform-origin: left;
}
.hero__highlight::before {
  content: ""; position: absolute; right: -.02em; bottom: -.06em; width: .16em; height: .16em; min-width: 8px; min-height: 8px;
  background: var(--l7-rosa-glow); border-radius: 2px; transform: rotate(45deg);
  box-shadow: 0 0 12px rgba(255, 26, 94, .9);
}

.hero__lead {
  margin: 28px 0 0; max-width: 52ch; text-wrap: pretty;
  font-size: clamp(16px, .35vw + 14.5px, 18.5px); line-height: 1.65; color: var(--l7-texto-suave);
}
.hero__lead strong { color: var(--l7-branco); font-weight: 700; }

.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 40px; }

/* Foto do fundador ------------------------------------------------------- */
.hero__founder {
  position: relative; margin: 0; align-self: end;
  /* largura limitada pela altura da tela, para a dobra caber inteira (foto 3:4) */
  width: min(100%, 560px, calc((100svh - var(--header-h) - 150px) * .75));
  min-width: min(100%, 340px); justify-self: center;
}
.hero__structure {
  position: absolute; z-index: 0; left: 50%; top: -4%;
  width: 118%; max-width: none; height: auto; transform: translateX(-50%);
  overflow: visible; pointer-events: none;
}
.hero__glow {
  position: absolute; z-index: 0; left: 8%; right: 8%; top: 6%; height: 62%;
  background: radial-gradient(closest-side, rgba(230, 11, 79, .32), rgba(164, 5, 78, .14) 55%, transparent 100%);
  filter: blur(18px); pointer-events: none;
}
.hero__photo { position: relative; z-index: 1; display: block; }
.hero__photo img {
  width: 100%; height: auto;
  /* integra a base da foto ao fundo + luz de contorno sutil */
  -webkit-mask-image: linear-gradient(to bottom, #000 70%, transparent 97%);
  mask-image: linear-gradient(to bottom, #000 70%, transparent 97%);
  filter: drop-shadow(-1px -1px 0 rgba(255, 120, 160, .35)) drop-shadow(-10px -6px 28px rgba(230, 11, 79, .22));
}
.hero__caption {
  position: absolute; z-index: 2; right: -6%; bottom: 12%;
  display: grid; gap: 4px; padding: 11px 16px 11px 14px;
  border-left: 2px solid var(--l7-rosa); border-radius: 0 8px 8px 0;
  background: rgba(5, 4, 25, .62);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  box-shadow: 0 10px 30px -10px rgba(0, 0, 0, .6);
}
.hero__caption-name { font-size: 13px; font-weight: 800; letter-spacing: .22em; text-transform: uppercase; }
.hero__caption-role { font-family: var(--l7-mono); font-size: 11px; letter-spacing: .08em; color: var(--l7-texto-suave); }

/* Composição gráfica */
.node { fill: #0b1230; stroke: rgba(255, 255, 255, .45); stroke-width: 1; }
.node--active { fill: var(--l7-rosa-glow); stroke: none; filter: drop-shadow(0 0 6px rgba(255, 26, 94, .9)); }
.structure__rings { transform-box: view-box; transform-origin: 300px 330px; }

/* Assinatura da metodologia ---------------------------------------------- */
.hero__method {
  position: relative; z-index: 2;
  width: 100%; max-width: var(--max); margin: 0 auto;
  display: flex; align-items: center; gap: 28px;
  padding: 22px 0 26px; border-top: 1px solid var(--l7-linha);
}
.hero__method-label {
  flex: none; margin: 0; display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--l7-mono); font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--l7-rosa-glow);
}
.hero__method-label::after { content: ""; width: 28px; height: 1px; background: rgba(255, 26, 94, .5); }
.hero__pillars {
  counter-reset: pilar;
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px 0;
  margin: 0; padding: 0; list-style: none;
}
.hero__pillars li {
  counter-increment: pilar;
  font-size: 12px; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: #9EA3C2;
}
.hero__pillars li + li::before { content: "/"; margin: 0 .9em; color: rgba(255, 255, 255, .22); font-weight: 400; }
.hero__pillars li:last-child { color: var(--l7-branco); }

/* --------------------------------------------------------------------------
   Animações (só quando o usuário não pede movimento reduzido)
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: no-preference) {
  .hero__eyebrow   { animation: subir .7s var(--ease) .05s both; }
  .hero__title     { animation: subir-titulo .9s var(--ease) .12s both; }
  .hero__highlight::after { animation: tracar .8s var(--ease) .9s both; }
  .hero__highlight::before { animation: surgir .4s var(--ease) 1.5s both; }
  .hero__lead      { animation: subir .8s var(--ease) .35s both; }
  .hero__actions .btn { animation: subir .7s var(--ease) both; }
  .hero__actions .btn:nth-child(1) { animation-delay: .55s; }
  .hero__actions .btn:nth-child(2) { animation-delay: .68s; }
  .hero__photo     { animation: foto 1.2s var(--ease) .1s both; } /* só transform: não atrasa o LCP */
  .hero__caption   { animation: subir .8s var(--ease) 1s both; }
  .hero__glow      { animation: respirar 7s ease-in-out infinite; }
  .hero__method    { animation: surgir 1s var(--ease) .9s both; }

  .structure__rings { animation: girar 160s linear infinite; }
  .structure__links polygon, .structure__links path { stroke-dasharray: 1600; animation: tracar-linha 2.6s var(--ease) .3s both; }
  .structure__nodes .node { animation: surgir .6s var(--ease) both; }
  .structure__nodes .node:nth-child(1) { animation-delay: .5s; }
  .structure__nodes .node:nth-child(2) { animation-delay: .6s; }
  .structure__nodes .node:nth-child(3) { animation-delay: .7s; }
  .structure__nodes .node:nth-child(4) { animation-delay: .8s; }
  .structure__nodes .node:nth-child(5) { animation-delay: .9s; }
  .structure__nodes .node:nth-child(6) { animation-delay: 1s; }
  .structure__nodes .node:nth-child(7) { animation-delay: 1.1s; }
  .structure__nodes .node--active { animation: surgir .6s var(--ease) 1.2s both, pulsar 3.2s ease-in-out 2s infinite; }
}

@keyframes subir { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
@keyframes subir-titulo { from { opacity: .01; transform: translateY(20px); } to { opacity: 1; transform: none; } }
@keyframes surgir { from { opacity: 0; } to { opacity: 1; } }
@keyframes tracar { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes tracar-linha { from { stroke-dashoffset: 1600; } to { stroke-dashoffset: 0; } }
@keyframes foto { from { transform: translateY(24px) scale(.98); } to { transform: none; } }
@keyframes respirar { 50% { opacity: .7; transform: scale(1.04); } }
@keyframes girar { to { transform: rotate(360deg); } }
@keyframes pulsar { 50% { opacity: .45; } }

/* --------------------------------------------------------------------------
   Responsivo
   -------------------------------------------------------------------------- */
@media (max-width: 1100px) {
  .site-nav__list { gap: 22px; }
  .site-nav { gap: 24px; }
}

/* Notebooks com pouca altura (ex.: 1366×768, 1280×720): dobra mais compacta */
@media (max-height: 820px) and (min-width: 861px) {
  .hero { padding-top: calc(var(--header-h) + 8px); }
  .hero__content { padding: 8px 0; }
  .hero__eyebrow { margin-bottom: 18px; }
  .hero__title { font-size: clamp(30px, 1.9vw + 14px, 44px); }
  .hero__lead { margin-top: 18px; font-size: 16px; line-height: 1.6; }
  .hero__actions { margin-top: 26px; }
  .btn { min-height: 48px; padding-block: 14px; }
  .hero__method { padding: 16px 0 18px; }
}

/* Menu recolhido (tablet e celular) */
@media (max-width: 1023px) {
  .js .menu-toggle { display: inline-flex; }
  .js .site-nav {
    position: fixed; inset: var(--header-h) 0 auto; z-index: 49;
    flex-direction: column; align-items: stretch; gap: 20px;
    padding: 12px var(--gutter) 28px;
    background: rgba(5, 4, 25, .97); border-bottom: 1px solid var(--l7-linha);
    -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
    visibility: hidden; opacity: 0; transform: translateY(-8px);
    transition: opacity .25s var(--ease), transform .25s var(--ease), visibility 0s .25s;
  }
  .js .site-nav.is-open { visibility: visible; opacity: 1; transform: none; transition-delay: 0s; }
  .js .site-nav__list { flex-direction: column; gap: 0; }
  .js .site-nav__list a { display: block; padding: 14px 0; font-size: 17px; border-bottom: 1px solid var(--l7-linha); }
  .js .site-nav__list a::after { display: none; }
  .js .site-nav__cta { width: 100%; }
  .js .site-header:has(.site-nav.is-open) { background: rgba(5, 4, 25, .97); }

  /* Sem JavaScript: o menu fica visível e quebra em linhas */
  .no-js .site-header { position: absolute; height: auto; }
  .no-js .site-header__inner { flex-wrap: wrap; padding-block: 16px; }
  .no-js .site-nav { flex-wrap: wrap; gap: 12px 24px; }
  .no-js .site-nav__list { flex-wrap: wrap; gap: 4px 20px; }
}

/* Tablet e celular: uma coluna, headline primeiro */
@media (max-width: 860px) {
  .hero { padding-top: calc(var(--header-h) + 24px); }
  .hero__inner { grid-template-columns: 1fr; gap: 8px; }
  .hero__content { padding: 8px 0 0; }
  .hero__founder { width: min(86vw, 440px); margin-top: 8px; }
  .hero__caption { right: 0; bottom: 12%; }
  .hero__method { flex-direction: column; align-items: flex-start; gap: 14px; padding: 20px 0 28px; }
  .hero__pillars { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 16px; width: 100%; }
  .hero__pillars li { font-size: 11px; letter-spacing: .14em; }
  .hero__pillars li::before,
  .hero__pillars li + li::before {
    content: counter(pilar, decimal-leading-zero); margin: 0 10px 0 0;
    font-family: var(--l7-mono); font-size: 10px; font-weight: 500; letter-spacing: .06em; color: var(--l7-rosa-glow);
  }
}

@media (max-width: 560px) {
  :root { --header-h: 68px; }
  .site-header__logo { width: 124px; }
  .hero__eyebrow { margin-bottom: 20px; font-size: 11px; letter-spacing: .2em; }
  .hero__title { font-size: clamp(29px, 7.6vw, 36px); line-height: 1.1; }
  .hero__lead { margin-top: 20px; }
  .hero__actions { flex-direction: column; margin-top: 28px; }
  .hero__actions .btn { width: 100%; padding-inline: 16px; font-size: 12px; letter-spacing: .035em; }
  .hero__founder { width: 100%; max-width: 380px; }
  .hero__structure { width: 130%; }
  .hero__caption-name { font-size: 12px; }
}

/* WordPress: barra de administração (só para quem está logado) */
.admin-bar .site-header { top: 32px; }
.admin-bar .hero { padding-top: calc(var(--header-h) + 32px + clamp(16px, 4vh, 48px)); }
@media (max-width: 1023px) {
  .js .admin-bar .site-nav { top: calc(var(--header-h) + 32px); }
}
@media (max-width: 782px) {
  .admin-bar .site-header { top: 46px; }
  .admin-bar .hero { padding-top: calc(var(--header-h) + 46px + 24px); }
  .js .admin-bar .site-nav { top: calc(var(--header-h) + 46px); }
}
