/* pedromedeiros.com.br — uma página só. Sem fonte externa, sem biblioteca: tudo sai deste domínio. */

:root {
  --fundo: #0d0b1a;
  --fundo-2: #131026;
  --cartao: #18152e;
  --linha: #2c2852;
  --texto: #f3f1ff;
  --texto-2: #b9b5dc;
  --acento: #a78bfa;
  --acento-2: #22d3ee;
  --acento-forte: #8b5cf6;
  --sobre-acento: #0d0b1a;
  --sombra: 0 24px 60px -30px rgba(0, 0, 0, 0.7);
  --brilho: rgba(139, 92, 246, 0.22);
  --raio: 20px;
  --largura: 1120px;
  --fonte: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "Cascadia Code", "SFMono-Regular", Menlo, Consolas, "Liberation Mono", monospace;
  color-scheme: dark;
}

@media (prefers-color-scheme: light) {
  :root:not([data-tema="escuro"]) {
    --fundo: #faf9ff;
    --fundo-2: #f1effb;
    --cartao: #ffffff;
    --linha: #dcd9f0;
    --texto: #17142c;
    --texto-2: #4b4870;
    --acento: #6d28d9;
    --acento-2: #0e7490;
    --acento-forte: #6d28d9;
    --sobre-acento: #ffffff;
    --sombra: 0 24px 60px -34px rgba(60, 40, 140, 0.35);
    --brilho: rgba(109, 40, 217, 0.12);
    color-scheme: light;
  }
}

:root[data-tema="claro"] {
  --fundo: #faf9ff;
  --fundo-2: #f1effb;
  --cartao: #ffffff;
  --linha: #dcd9f0;
  --texto: #17142c;
  --texto-2: #4b4870;
  --acento: #6d28d9;
  --acento-2: #0e7490;
  --acento-forte: #6d28d9;
  --sobre-acento: #ffffff;
  --sombra: 0 24px 60px -34px rgba(60, 40, 140, 0.35);
  --brilho: rgba(109, 40, 217, 0.12);
  color-scheme: light;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 84px;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--fundo);
  color: var(--texto);
  font-family: var(--fonte);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3, p, ul, figure { margin: 0; }
ul { padding: 0; list-style: none; }
a { color: var(--acento); text-underline-offset: 3px; }
svg { display: block; }

:focus-visible {
  outline: 3px solid var(--acento-2);
  outline-offset: 3px;
  border-radius: 6px;
}

.so-leitor {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.pular {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 60;
  padding: 10px 16px;
  border-radius: 10px;
  background: var(--acento-forte);
  color: #fff;
  font-weight: 600;
  text-decoration: none;
  transform: translateY(-160%);
}
.pular:focus { transform: none; }

.largura {
  width: min(var(--largura), 100% - 48px);
  margin-inline: auto;
}

/* ---------- barra de progresso da leitura ---------- */
.progresso {
  position: fixed;
  inset: 0 0 auto 0;
  height: 3px;
  z-index: 50;
  background: linear-gradient(90deg, var(--acento-forte), var(--acento-2));
  transform: scaleX(var(--lido, 0));
  transform-origin: left;
}

/* ---------- menu ---------- */
.topo {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 40;
  border-bottom: 1px solid transparent;
  transition: background-color 0.25s, border-color 0.25s;
}
.topo.rolou {
  background: color-mix(in srgb, var(--fundo) 82%, transparent);
  border-bottom-color: var(--linha);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
}
.menu {
  width: min(var(--largura), 100% - 48px);
  margin-inline: auto;
  height: 68px;
  display: flex;
  align-items: center;
  gap: 20px;
}
.marca {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-right: auto;
  color: var(--texto);
  font-weight: 650;
  text-decoration: none;
  letter-spacing: -0.01em;
}
.marca-sinal {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--acento-forte), var(--acento-2));
  color: #fff;
  font-family: var(--mono);
  font-size: 0.82rem;
  font-weight: 700;
}
.menu-lista {
  display: flex;
  align-items: center;
  gap: 4px;
}
.menu-lista a {
  position: relative;
  display: block;
  padding: 8px 14px;
  border-radius: 999px;
  color: var(--texto-2);
  font-size: 0.95rem;
  font-weight: 500;
  text-decoration: none;
  transition: color 0.2s, background-color 0.2s;
}
.menu-lista a:hover { color: var(--texto); }
.menu-lista a[aria-current="true"] {
  color: var(--texto);
  background: var(--brilho);
}
.tema-botao, .menu-botao {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 1px solid var(--linha);
  border-radius: 12px;
  background: transparent;
  color: var(--texto);
  cursor: pointer;
}
.tema-botao svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.tema-lua { display: none; }
:root[data-tema="claro"] .tema-sol { display: none; }
:root[data-tema="claro"] .tema-lua { display: block; }
@media (prefers-color-scheme: light) {
  :root:not([data-tema="escuro"]) .tema-sol { display: none; }
  :root:not([data-tema="escuro"]) .tema-lua { display: block; }
}
.menu-botao { display: none; }
.menu-botao-linhas, .menu-botao-linhas::before, .menu-botao-linhas::after {
  display: block;
  width: 18px;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  transition: transform 0.2s, opacity 0.2s;
}
.menu-botao-linhas { position: relative; }
.menu-botao-linhas::before, .menu-botao-linhas::after { content: ""; position: absolute; left: 0; }
.menu-botao-linhas::before { top: -6px; }
.menu-botao-linhas::after { top: 6px; }
.menu-botao[aria-expanded="true"] .menu-botao-linhas { background: transparent; }
.menu-botao[aria-expanded="true"] .menu-botao-linhas::before { transform: translateY(6px) rotate(45deg); }
.menu-botao[aria-expanded="true"] .menu-botao-linhas::after { transform: translateY(-6px) rotate(-45deg); }

/* ---------- início ---------- */
.inicio {
  position: relative;
  min-height: 100svh;
  display: grid;
  align-items: center;
  padding: 120px 0 72px;
  overflow: hidden;
}
.inicio-grade {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(520px circle at var(--mx, 70%) var(--my, 30%), var(--brilho), transparent 70%),
    radial-gradient(circle, color-mix(in srgb, var(--texto-2) 26%, transparent) 1px, transparent 1.5px) 0 0 / 28px 28px;
  -webkit-mask-image: linear-gradient(to bottom, #000 55%, transparent);
  mask-image: linear-gradient(to bottom, #000 55%, transparent);
  pointer-events: none;
}
.inicio-colunas {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  align-items: center;
  gap: 56px;
}
.etiqueta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
  color: var(--acento);
  font-family: var(--mono);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.etiqueta::before {
  content: "";
  width: 22px;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--acento-forte), var(--acento-2));
}
h1 {
  font-size: clamp(2.9rem, 8vw, 5.4rem);
  font-weight: 750;
  line-height: 1.02;
  letter-spacing: -0.04em;
  background: linear-gradient(120deg, var(--texto) 30%, var(--acento) 70%, var(--acento-2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.papel {
  min-height: 2.2em;
  margin-top: 22px;
  font-family: var(--mono);
  font-size: clamp(1rem, 2.2vw, 1.25rem);
  color: var(--texto-2);
}
.papel-gira { color: var(--texto); font-weight: 600; }
.papel-cursor {
  display: inline-block;
  width: 0.6ch;
  height: 1.15em;
  margin-left: 3px;
  vertical-align: text-bottom;
  background: var(--acento-2);
  animation: piscar 1s steps(1) infinite;
}
.chamada {
  max-width: 34ch;
  margin-top: 14px;
  font-size: clamp(1.1rem, 2.1vw, 1.3rem);
  color: var(--texto-2);
}
.acoes {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 34px;
}
.acoes-centro { justify-content: center; }
.botao {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 12px 26px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-weight: 600;
  text-decoration: none;
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s, background-color 0.2s;
}
.botao:hover { transform: translateY(-2px); }
.botao-cheio {
  background: linear-gradient(120deg, var(--acento-forte), #6366f1 55%, var(--acento-2));
  color: #fff;
  box-shadow: 0 14px 34px -14px var(--acento-forte);
}
.botao-vazado {
  border-color: var(--linha);
  color: var(--texto);
}
.botao-vazado:hover { border-color: var(--acento); }

/* o desenho das três frentes */
.fluxo { position: relative; }
.fluxo-desenho {
  width: 100%;
  height: auto;
  overflow: visible;
  font-family: var(--fonte);
}
.cor-a { stop-color: var(--acento-forte); }
.cor-b { stop-color: var(--acento-2); }
.fluxo-linha {
  fill: none;   /* a cor do traço vem do atributo `stroke` no HTML: `url(#…)` num CSS externo falha em alguns navegadores */
  stroke-width: 2;
  stroke-linecap: round;
  stroke-dasharray: 3 9;
  animation: correr 1.4s linear infinite;
}
.fluxo-volta { opacity: 0.45; }
.fluxo-ponto { fill: var(--acento-2); filter: drop-shadow(0 0 6px var(--acento-2)); }
.fluxo-ponto-volta { fill: var(--acento); filter: drop-shadow(0 0 6px var(--acento)); }
.fluxo-caixa {
  fill: var(--cartao);
  stroke: var(--linha);
  stroke-width: 1.2;
  filter: drop-shadow(0 18px 26px rgba(0, 0, 0, 0.28));
}
.fluxo-no { animation: flutuar 6s ease-in-out infinite; }
.fluxo-no:nth-of-type(2) { animation-delay: -2s; }
.fluxo-no:nth-of-type(3) { animation-delay: -4s; }
.fluxo-icone { fill: var(--acento); font-family: var(--mono); font-size: 19px; font-weight: 700; }
.fluxo-barras rect { fill: var(--acento); }
.fluxo-barras rect:last-child { fill: var(--acento-2); }
.fluxo-raio { fill: var(--acento-2); }
.fluxo-nome { fill: var(--texto); font-size: 16px; font-weight: 650; }
.fluxo-verbo { fill: var(--texto-2); font-family: var(--mono); font-size: 11px; }
.fluxo-legenda {
  max-width: 44ch;
  margin: 10px auto 0;
  color: var(--texto-2);
  font-size: 0.88rem;
  text-align: center;
}

/* ---------- seções ---------- */
.secao { padding: 104px 0; }
.secao-realce {
  background: var(--fundo-2);
  border-block: 1px solid var(--linha);
}
h2 {
  max-width: 20ch;
  font-size: clamp(1.9rem, 4.6vw, 3rem);
  font-weight: 720;
  line-height: 1.1;
  letter-spacing: -0.03em;
}
h3 {
  font-size: 1.3rem;
  font-weight: 680;
  letter-spacing: -0.015em;
}
.subtitulo {
  max-width: 56ch;
  margin-top: 16px;
  color: var(--texto-2);
  font-size: 1.1rem;
}

/* sobre */
.sobre-colunas {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
  gap: 56px;
  margin-top: 36px;
}
.sobre-texto p + p { margin-top: 16px; }
.sobre-texto p { color: var(--texto-2); }
.sobre-texto p:first-child { color: var(--texto); font-size: 1.15rem; }
.sobre-lista li {
  display: flex;
  align-items: baseline;
  gap: 16px;
  padding: 15px 0;
  border-bottom: 1px solid var(--linha);
  font-weight: 560;
}
.sobre-lista li:first-child { border-top: 1px solid var(--linha); }
.sobre-marca {
  color: var(--acento);
  font-family: var(--mono);
  font-size: 0.8rem;
  font-weight: 600;
}

/* especialidades */
.cartoes {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  margin-top: 48px;
}
.cartao {
  position: relative;
  padding: 26px;
  border: 1px solid var(--linha);
  border-radius: var(--raio);
  background: var(--cartao);
  box-shadow: var(--sombra);
  transition: transform 0.25s, border-color 0.25s;
}
.cartao:hover {
  transform: translateY(-6px);
  border-color: var(--acento);
}
.cartao-desenho {
  width: 100%;
  height: auto;
  margin-bottom: 24px;
}
.cartao p { margin-top: 10px; color: var(--texto-2); }
.cartao-lista { margin-top: 18px; }
.cartao-lista li {
  position: relative;
  padding: 7px 0 7px 26px;
  font-size: 0.98rem;
}
.cartao-lista li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 0.95em;
  width: 12px;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--acento-forte), var(--acento-2));
}

.d-janela { fill: var(--fundo-2); stroke: var(--linha); }
.d-bolinha { fill: var(--linha); }
.d-codigo, .d-barra { fill: color-mix(in srgb, var(--acento) 46%, transparent); transform-box: fill-box; }
.d-forte { fill: var(--acento-2); }
.d-codigo { transform-origin: left center; animation: escrever 4.8s ease-in-out infinite; }
.c2 { animation-delay: 0.35s; }
.c3 { animation-delay: 0.7s; }
.c4 { animation-delay: 1.05s; }
.d-barra { transform-origin: center bottom; animation: crescer 4.2s ease-in-out infinite; }
.b2 { animation-delay: 0.15s; }
.b3 { animation-delay: 0.3s; }
.b4 { animation-delay: 0.45s; }
.b5 { animation-delay: 0.6s; }
.b6 { animation-delay: 0.75s; }
.d-tendencia {
  fill: none;
  stroke: var(--texto);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 220;
  animation: tracar 4.2s ease-in-out infinite;
}
.d-fio { fill: none; stroke: var(--linha); stroke-width: 2; stroke-dasharray: 4 6; }
.d-pulso { fill: var(--acento-2); filter: drop-shadow(0 0 5px var(--acento-2)); }
.d-no { fill: var(--cartao); stroke: var(--acento); stroke-width: 2; }
.d-no.d-forte { fill: var(--acento-2); stroke: var(--acento-2); }
.d-sinal { fill: none; stroke: var(--acento); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.d-sinal-claro { stroke: var(--sobre-acento); }

/* utor */
.utor {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 0.7fr);
  align-items: center;
  gap: 40px;
  padding: clamp(28px, 5vw, 56px);
  border: 1px solid var(--linha);
  border-radius: 28px;
  background:
    radial-gradient(600px circle at 100% 0%, var(--brilho), transparent 60%),
    var(--cartao);
  box-shadow: var(--sombra);
  overflow: hidden;
}
.utor-texto p:not(.etiqueta) { max-width: 52ch; margin-top: 14px; color: var(--texto-2); }
.utor-texto .botao { margin-top: 28px; }
.utor-marca {
  position: relative;
  display: grid;
  place-items: center;
  aspect-ratio: 1;
  max-width: 260px;
  margin-inline: auto;
  width: 100%;
}
.utor-letra {
  position: relative;
  display: grid;
  place-items: center;
  width: 46%;
  aspect-ratio: 1;
  border-radius: 28%;
  background: linear-gradient(135deg, #7c3aed, #6366f1);
  color: #fff;
  font-size: clamp(2.4rem, 6vw, 3.6rem);
  font-weight: 750;
  box-shadow: 0 20px 50px -18px #7c3aed;
}
.utor-anel {
  position: absolute;
  inset: 8%;
  border: 1.5px dashed color-mix(in srgb, var(--acento) 60%, transparent);
  border-radius: 50%;
  animation: girar 26s linear infinite;
}
.utor-anel-2 {
  inset: 22%;
  border-style: solid;
  border-color: color-mix(in srgb, var(--acento-2) 45%, transparent) transparent;
  animation-duration: 14s;
  animation-direction: reverse;
}

/* contato */
.contato { text-align: center; }
.contato .etiqueta { justify-content: center; }
.contato h2, .contato .subtitulo { margin-inline: auto; }

/* rodapé */
.rodape {
  padding: 30px 0;
  border-top: 1px solid var(--linha);
  color: var(--texto-2);
  font-size: 0.92rem;
}
.rodape-linha {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px 24px;
}

/* página de endereço que não existe */
.perdido {
  min-height: 100svh;
  display: grid;
  place-items: center;
  padding: 24px;
  text-align: center;
}
.perdido h1 { font-size: clamp(2.4rem, 8vw, 4rem); }
.perdido p { margin-top: 16px; color: var(--texto-2); }
.perdido .acoes { justify-content: center; }

/* ---------- aparecer ao rolar (só com JavaScript: sem ele, tudo já está visível) ---------- */
.com-js .revelar {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.com-js .revelar.visivel {
  opacity: 1;
  transform: none;
}
.com-js .cartao.revelar:nth-child(2) { transition-delay: 0.1s; }
.com-js .cartao.revelar:nth-child(3) { transition-delay: 0.2s; }

@keyframes piscar { 50% { opacity: 0; } }
@keyframes correr { to { stroke-dashoffset: -24; } }
@keyframes flutuar { 50% { translate: 0 -7px; } }
@keyframes girar { to { rotate: 360deg; } }
@keyframes escrever {
  0% { transform: scaleX(0); }
  22%, 82% { transform: scaleX(1); }
  100% { transform: scaleX(0); }
}
@keyframes crescer {
  0% { transform: scaleY(0.12); }
  28%, 82% { transform: scaleY(1); }
  100% { transform: scaleY(0.12); }
}
@keyframes tracar {
  0%, 18% { stroke-dashoffset: 220; }
  50%, 84% { stroke-dashoffset: 0; }
  100% { stroke-dashoffset: 220; }
}

/* ---------- telas menores ---------- */
@media (max-width: 920px) {
  .inicio-colunas, .sobre-colunas, .utor { grid-template-columns: minmax(0, 1fr); }
  .inicio { padding-top: 104px; }
  .fluxo { max-width: 460px; margin-inline: auto; }
  .cartoes { grid-template-columns: minmax(0, 1fr); max-width: 520px; }
  .utor-marca { max-width: 180px; order: -1; margin-inline: 0; }
  .secao { padding: 76px 0; }
}

@media (max-width: 760px) {
  .menu-botao { display: grid; order: 3; }
  .marca-nome { display: none; }
  .menu-lista {
    position: absolute;
    inset: 68px 0 auto 0;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    padding: 12px 24px 20px;
    border-bottom: 1px solid var(--linha);
    background: var(--fundo);
    box-shadow: var(--sombra);
    visibility: hidden;
    opacity: 0;
    transform: translateY(-8px);
    transition: opacity 0.2s, transform 0.2s, visibility 0.2s;
  }
  .menu-lista.aberto {
    visibility: visible;
    opacity: 1;
    transform: none;
  }
  .menu-lista a { padding: 13px 14px; border-radius: 12px; font-size: 1.05rem; }
  /* sem JavaScript o botão não abre nada: o menu fica sempre à mostra, em linha */
  html:not(.com-js) .menu-botao { display: none; }
  html:not(.com-js) .menu-lista {
    position: static;
    flex-direction: row;
    flex-wrap: wrap;
    padding: 0;
    border: 0;
    background: none;
    box-shadow: none;
    visibility: visible;
    opacity: 1;
    transform: none;
  }
  html:not(.com-js) .menu { height: auto; padding: 10px 0; flex-wrap: wrap; }
}

/* ---------- quem pede menos movimento ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }
  .com-js .revelar { opacity: 1; transform: none; }
  .d-tendencia { stroke-dasharray: none; }
}
