:root {
  --bg: #0a0a0b;
  --bg-2: #141416;
  --line: #26262a;
  --text: #f2f2f0;
  --muted: #9a9aa0;
  --accent: #6a4dff;
  --grad: linear-gradient(135deg, #7a1fff, #1f6bff);
  --grad-texto: linear-gradient(90deg, #b07aff, #5a9bff);
  --radius: 14px;
  --max: 1200px;
  --display: "Space Grotesk", system-ui, sans-serif;
  --body: "Inter", system-ui, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
h1, h2, h3 { font-family: var(--display); line-height: 1.1; letter-spacing: -0.02em; }
h2 { font-size: clamp(2rem, 5vw, 3.2rem); margin-bottom: 1.5rem; }
em { font-style: normal; color: var(--accent); }

/* ---------- Botões ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .9rem 1.5rem; border-radius: 999px;
  background: var(--grad); color: #fff; font-weight: 500;
  transition: transform .2s, background .2s, border-color .2s;
  border: 1px solid transparent;
}
.btn:hover { transform: translateY(-2px); }
.btn-ghost { background: transparent; border-color: var(--line); }
.btn-ghost:hover { border-color: var(--text); }
.btn-small { padding: .55rem 1.1rem; }
.contact-links .btn { background: linear-gradient(135deg, #7a1fff, #1f6bff); border: 0; color: #fff; box-shadow: 0 8px 24px -8px rgba(90, 60, 255, .6); }
.contact-links .btn:hover { filter: brightness(1.12); }

/* ---------- Navegação ---------- */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  padding: 1rem clamp(1rem, 4vw, 3rem);
  background: rgba(10, 10, 11, .75);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.logo { font-family: var(--display); font-weight: 700; font-size: 1.25rem; letter-spacing: .02em; }
.logo span { color: var(--accent); }
.nav-links { display: flex; align-items: center; gap: 2rem; }
.nav-links a:not(.btn) { color: var(--muted); transition: color .2s; }
.nav-links a:not(.btn):hover { color: var(--text); }
.nav-toggle { display: none; width: 32px; height: 32px; flex-direction: column; justify-content: center; gap: 6px; }
.nav-toggle span { display: block; height: 2px; background: var(--text); border-radius: 2px; }

/* ---------- Hero ---------- */
.hero {
  max-width: var(--max); margin: 0 auto;
  padding: 9rem clamp(1rem, 4vw, 3rem) 4rem;
  border-bottom: 1px solid var(--line);
  display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center;
}
.hero h1 { font-size: clamp(3.2rem, 12vw, 9rem); margin-bottom: .5rem; }
.hero-sub { color: var(--accent); font-family: var(--display); font-size: clamp(1.1rem, 3vw, 1.8rem); letter-spacing: .08em; text-transform: lowercase; }
.eyebrow { color: var(--accent); text-transform: uppercase; letter-spacing: .15em; font-size: .8rem; font-weight: 500; margin-bottom: 1.25rem; }
.lead { color: var(--muted); font-size: 1.125rem; max-width: 34rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 2rem; }

.reel {
  position: relative; display: block; width: 100%;
  aspect-ratio: 16 / 9; border-radius: var(--radius); overflow: hidden;
  border: 1px solid var(--line);
}
.reel-thumb, .card-thumb { position: absolute; inset: 0; background-size: cover; background-position: center; transition: transform .6s ease; }
.reel:hover .reel-thumb { transform: scale(1.04); }
.reel::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,0,0,.55), transparent 55%); }
.reel-label { position: absolute; left: 1.25rem; bottom: 1rem; z-index: 2; font-family: var(--display); font-weight: 700; letter-spacing: .12em; font-size: .85rem; }

.play-icon {
  position: absolute; top: 50%; left: 50%; z-index: 2;
  width: 84px; height: 84px; transform: translate(-50%, -50%);
  border-radius: 50%; background: rgba(255,255,255,.15);
  backdrop-filter: blur(6px); border: 1px solid rgba(255,255,255,.35);
  transition: transform .3s, background .3s;
}
.play-icon::before {
  content: ""; position: absolute; top: 50%; left: 54%; transform: translate(-50%, -50%);
  border-style: solid; border-width: 13px 0 13px 21px; border-color: transparent transparent transparent #fff;
}
.reel:hover .play-icon, .card:hover .play-icon { transform: translate(-50%, -50%) scale(1.1); background: var(--grad); border-color: transparent; }
.play-icon.small { width: 56px; height: 56px; }
.play-icon.small::before { border-width: 9px 0 9px 15px; }

/* ---------- Números ---------- */
.stats {
  max-width: var(--max); margin: 0 auto; padding: 2.5rem clamp(1rem, 4vw, 3rem);
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem;
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
}
.stats div { display: flex; flex-direction: column; }
.stats strong { font-family: var(--display); font-size: clamp(1.8rem, 4vw, 2.6rem); }
.stats span { color: var(--muted); font-size: .9rem; }

/* ---------- Seções ---------- */
.section { max-width: var(--max); margin: 0 auto; padding: 6rem clamp(1rem, 4vw, 3rem); }
.section-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 1rem; margin-bottom: 2rem; }
.section-head h2 { margin-bottom: 0; }

.filters { display: flex; flex-wrap: wrap; gap: .5rem; }
.filters button {
  padding: .5rem 1rem; border-radius: 999px; border: 1px solid var(--line);
  color: var(--muted); font-size: .9rem; transition: all .2s;
}
.filters button:hover { color: var(--text); border-color: var(--text); }
.filters button.active { background: var(--text); color: var(--bg); border-color: var(--text); }

/* ---------- Grade ---------- */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 1.5rem; }
.card { text-align: left; display: flex; flex-direction: column; gap: 1rem; }
.card[hidden] { display: none; }
.card-thumb { position: relative; aspect-ratio: 16 / 9; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); }
.card:hover .card-thumb { transform: scale(.98); }
.grid:has(.card.vertical) { grid-template-columns: repeat(4, 1fr); }
.card.vertical .card-thumb { aspect-ratio: 9 / 16; }
.card-meta h3 { font-size: 1.25rem; margin: .4rem 0 .2rem; }
.card-meta p { color: var(--muted); font-size: .9rem; }
.tag { font-size: .75rem; text-transform: uppercase; letter-spacing: .12em; color: var(--accent); }

/* ---------- Sobre ---------- */
.about { max-width: 820px; text-align: center; }
.about .tools { justify-content: center; }
.about-photo {
  aspect-ratio: 4 / 5; border-radius: var(--radius);
  background: linear-gradient(160deg, var(--bg-2), #1f1f24);
  border: 1px solid var(--line);
  display: grid; place-items: center; color: var(--muted); letter-spacing: .15em; font-size: .8rem;
  background-size: cover; background-position: center;
}
.about p { color: var(--muted); margin-bottom: 1rem; font-size: 1.05rem; }
.about strong { color: var(--text); }
.tools { list-style: none; display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1.5rem; }
.tools li { padding: .4rem .9rem; border: 1px solid var(--line); border-radius: 999px; font-size: .85rem; }

/* ---------- Serviços ---------- */
.services { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.services article { background: var(--bg); padding: 2rem 1.5rem; transition: background .3s; }
.services article:hover { background: var(--bg-2); }
.services .num { color: var(--accent); font-family: var(--display); font-size: .85rem; }
.services h3 { font-size: 1.3rem; margin: 2.5rem 0 .6rem; }
.services p { color: var(--muted); font-size: .95rem; }

/* ---------- Depoimentos ---------- */
.quotes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
blockquote { background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--radius); padding: 2rem; display: flex; flex-direction: column; justify-content: space-between; gap: 1.5rem; }
blockquote p { font-size: 1.1rem; }
cite { color: var(--muted); font-style: normal; font-size: .9rem; }

/* ---------- Contato ---------- */
.contact { text-align: center; }
.contact h2 { font-size: clamp(2.4rem, 7vw, 5rem); }
.contact .lead { margin: 0 auto; }
.contact-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 1rem; margin-top: 2.5rem; }

.footer { border-top: 1px solid var(--line); padding: 2rem; text-align: center; color: var(--muted); font-size: .85rem; }

/* ---------- Modal ---------- */
.modal {
  position: fixed; inset: 0; z-index: 100;
  display: grid; place-items: center; padding: 1rem;
  background: rgba(0,0,0,.9); backdrop-filter: blur(8px);
  opacity: 0; pointer-events: none; transition: opacity .3s;
}
.modal.open { opacity: 1; pointer-events: auto; }
.modal-body { width: min(1100px, 100%); }
.modal-close { position: absolute; top: 1rem; right: 1.25rem; font-size: 2.5rem; line-height: 1; color: var(--text); }
.player { position: relative; aspect-ratio: 16 / 9; background: #000; border-radius: var(--radius); overflow: hidden; }
.player.vertical { aspect-ratio: 9 / 16; max-height: 80vh; margin: 0 auto; width: auto; }
.player iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.player-empty { position: absolute; inset: 0; display: grid; place-items: center; color: var(--muted); padding: 1rem; text-align: center; }
.player-empty code { color: var(--accent); }
.modal-info { margin-top: 1rem; }
.modal-info p { color: var(--muted); }

/* ---------- Animação ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s ease, transform .8s ease; }
.reveal.visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ---------- Responsivo ---------- */
@media (max-width: 960px) {
  .services { grid-template-columns: repeat(2, 1fr); }
  .quotes { grid-template-columns: 1fr; }
  .about { grid-template-columns: 1fr; gap: 2rem; }
  .about-photo { max-width: 360px; }
}
@media (max-width: 720px) {
  .nav-toggle { display: flex; }
  .nav-links {
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: flex-start; gap: 1.25rem;
    padding: 1.5rem 1rem; background: var(--bg); border-bottom: 1px solid var(--line);
    display: none;
  }
  .nav-links.open { display: flex; }
  .stats { grid-template-columns: repeat(2, 1fr); row-gap: 1.5rem; }
  .services { grid-template-columns: 1fr; }
  .grid { grid-template-columns: 1fr; }
  .grid:has(.card.vertical) { grid-template-columns: repeat(2, 1fr); gap: 1rem; }
  .card-meta h3 { font-size: 1.05rem; }
  .section { padding: 4rem 1rem; }
}

/* ---------- Animação do nome ---------- */
.hero h1, .hero-sub {
  opacity: 0;
  animation: surgir 1.6s cubic-bezier(.22, 1, .36, 1) forwards;
}
.hero-sub { animation-delay: .35s; }
@keyframes surgir {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  .hero h1, .hero-sub { animation: none; opacity: 1; }
}

.email-texto { min-height: 1.5em; margin-top: 1.25rem; color: var(--muted); font-size: .95rem; user-select: all; transition: color .3s; }
.email-texto.copiado { color: #8fa8ff; }

/* ---------- Texto em degradê roxo/azul ---------- */
.logo span, .hero-sub, .tag, em, .eyebrow, .player-empty code {
  background: var(--grad-texto);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ---------- Animação do logo "PORTFÓLIO DE EDIÇÃO" ---------- */
.logo {
  display: inline-block;
  background: linear-gradient(100deg, #fff 0%, #fff 40%, #c9a6ff 47%, #ffffff 50%, #8fb8ff 53%, #fff 60%, #fff 100%);
  background-size: 300% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation:
    logoEntra 1.1s cubic-bezier(.22, 1, .36, 1) both,
    logoBrilho 3.2s ease-in-out 1.1s infinite;
}
.logo span {
  background: linear-gradient(90deg, #b07aff, #5a9bff, #c58bff, #b07aff);
  background-size: 300% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: logoFluxo 4s linear infinite, logoPulso 2.4s ease-in-out infinite;
}
@keyframes logoEntra {
  0%   { opacity: 0; transform: translateX(-30px) scale(.9); filter: blur(10px); letter-spacing: .4em; }
  100% { opacity: 1; transform: none; filter: blur(0); letter-spacing: .02em; }
}
@keyframes logoBrilho {
  0%   { background-position: 100% 0; }
  60%, 100% { background-position: 0% 0; }
}
@keyframes logoFluxo {
  to { background-position: 300% 0; }
}
@keyframes logoPulso {
  0%, 100% { filter: drop-shadow(0 0 0 rgba(140, 100, 255, 0)); }
  50%      { filter: drop-shadow(0 0 10px rgba(140, 100, 255, .85)); }
}
@media (prefers-reduced-motion: reduce) {
  .logo, .logo span { animation: none; }
}
