/* ============================================================
   Panterium · Portfólio — identidade visual da landing page
   Paleta monocromática: #050505 / #0a0a0a / neutros / branco
   Tipografia: Syne (display) + Inter (texto)
   ============================================================ */

@property --gradient-angle { syntax: "<angle>"; inherits: false; initial-value: 0deg; }
@property --gradient-angle-offset { syntax: "<angle>"; inherits: false; initial-value: 0deg; }
@property --gradient-percent { syntax: "<percentage>"; inherits: false; initial-value: 5%; }
@property --gradient-shine { syntax: "<color>"; inherits: false; initial-value: #fff; }

:root {
  --bg: #050505;
  --bg-soft: #0a0a0a;
  --bg-card: #0d0d0d;
  --fg: #e5e5e5;
  --muted: #a3a3a3;
  --muted-2: #737373;
  --muted-3: #525252;
  --accent: #ffffff;
  --accent-deep: #262626;
  --line: rgba(255, 255, 255, 0.08);
  --line-soft: rgba(255, 255, 255, 0.05);
  --font-display: "Syne", "Inter", sans-serif;
  --font-sans: "Inter", system-ui, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-sans);
  font-weight: 400;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

::selection { background: #fff; color: #000; }

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: none; cursor: pointer; }

.container {
  width: min(1200px, 100% - 3rem);
  margin-inline: auto;
}

/* ---------- fundo com brilho vermelho profundo ---------- */
.bg-glow {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(55% 38% at 50% -6%, rgba(255, 255, 255, 0.07), transparent 70%),
    radial-gradient(40% 30% at 88% 110%, rgba(255, 255, 255, 0.04), transparent 70%);
}
.bg-grid {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: radial-gradient(70% 55% at 50% 0%, #000 30%, transparent 100%);
  -webkit-mask-image: radial-gradient(70% 55% at 50% 0%, #000 30%, transparent 100%);
}

/* ---------- header ---------- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  border-bottom: 1px solid transparent;
  transition: background 0.4s ease, border-color 0.4s ease, backdrop-filter 0.4s ease;
}
.site-header.scrolled {
  background: rgba(5, 5, 5, 0.82);
  border-bottom-color: var(--line-soft);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  height: 76px;
}
.wordmark {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #fff;
  display: inline-flex;
  align-items: baseline;
  gap: 0.15em;
}
.wordmark .dot { color: var(--accent); }
.site-nav {
  display: flex;
  align-items: center;
  gap: 2rem;
}
.site-nav a {
  font-size: 0.8rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  transition: color 0.3s ease;
}
.site-nav a:hover { color: #fff; }
.site-nav .nav-cta {
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  padding: 0.55rem 1.3rem;
  transition: background 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}
.site-nav .nav-cta:hover {
  background: #fff;
  color: #000;
  border-color: #fff;
}
@media (max-width: 640px) {
  .site-nav a:not(.nav-cta) { display: none; }
}

/* ---------- micro-label (— rótulo —) ---------- */
.micro {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1.5rem;
}

/* ---------- hero ---------- */
.hero {
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  padding: 9rem 0 5rem;
  overflow: hidden;
}
.hero .container { position: relative; z-index: 1; }
.hero-panther {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image: url("panterium-panther.jpg");
  background-repeat: no-repeat;
  background-position: right -4% center;
  background-size: min(52vw, 860px);
  opacity: 0.9;
  mix-blend-mode: screen;
  -webkit-mask-image: radial-gradient(48% 62% at 76% 50%, #000 55%, transparent 98%);
  mask-image: radial-gradient(48% 62% at 76% 50%, #000 55%, transparent 98%);
}
@media (max-width: 900px) {
  .hero-panther {
    background-position: right -18vw bottom 4rem;
    background-size: 105vw;
    opacity: 0.45;
    -webkit-mask-image: radial-gradient(70% 60% at 70% 62%, #000 50%, transparent 98%);
    mask-image: radial-gradient(70% 60% at 70% 62%, #000 50%, transparent 98%);
  }
}
.hero h1 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.6rem, 7.2vw, 5.5rem);
  line-height: 1.04;
  letter-spacing: -0.03em;
  color: #fff;
  text-wrap: balance;
  filter: drop-shadow(0 25px 25px rgba(0, 0, 0, 0.35));
}
.hero h1 .line { display: block; }
.hero h1 .accent {
  color: transparent;
  -webkit-text-stroke: 2px #fff;
}
.hero .lede {
  max-width: 46ch;
  margin-top: 1.75rem;
  font-size: clamp(1rem, 1.6vw, 1.2rem);
  font-weight: 300;
  color: var(--muted);
}
.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  margin-top: 3.5rem;
  border-top: 1px solid var(--line);
  max-width: 900px;
}
.hero-stats .stat {
  padding: 1.4rem 2.5rem 0 0;
}
.hero-stats .stat + .stat { padding-left: 2.5rem; border-left: 1px solid var(--line); }
.hero-stats .num {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.8rem, 3.4vw, 2.6rem);
  color: #fff;
  line-height: 1;
}
.hero-stats .num sup { font-size: 0.5em; color: var(--muted-2); }
.hero-stats .label {
  display: block;
  margin-top: 0.5rem;
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted-2);
}
@media (max-width: 560px) {
  .hero-stats { flex-direction: column; border-top: none; max-width: 100%; }
  .hero-stats .stat { padding: 1.1rem 0 0.9rem; border-top: 1px solid var(--line); }
  .hero-stats .stat + .stat { padding-left: 0; border-left: none; }
}
.scroll-cue {
  position: absolute;
  bottom: 2.2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.68rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--muted-3);
}
.scroll-cue svg {
  width: 16px;
  height: 16px;
  animation: cue-bob 2s ease-in-out infinite;
}
@keyframes cue-bob {
  0%, 100% { transform: translateY(0); opacity: 0.5; }
  50% { transform: translateY(6px); opacity: 1; }
}

/* ---------- seções ---------- */
.section { padding: 7rem 0; }
.section-head { max-width: 780px; }
.section-head h2 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2rem, 4.6vw, 3.4rem);
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: #fff;
  text-wrap: balance;
}
.section-head p {
  margin-top: 1.25rem;
  font-weight: 300;
  color: var(--muted);
  max-width: 52ch;
}

/* ---------- filtros ---------- */
.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin: 3rem 0 2.5rem;
}
.filter {
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.5rem 1.1rem;
  transition: color 0.25s ease, border-color 0.25s ease, background 0.25s ease;
}
.filter .count {
  color: var(--muted-3);
  font-size: 0.85em;
  margin-left: 0.35em;
  transition: color 0.25s ease;
}
.filter:hover { color: #fff; border-color: rgba(255, 255, 255, 0.3); }
.filter.active {
  background: #fff;
  color: #000;
  border-color: #fff;
}
.filter.active .count { color: var(--accent-deep); }
@media (max-width: 620px) {
  .filters {
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 0.6rem;
    margin-inline: calc((100% - 100vw) / 2);
    padding-inline: calc((100vw - 100%) / 2);
    scrollbar-width: none;
  }
  .filters::-webkit-scrollbar { display: none; }
  .filter { flex: none; }
}

.grid-meta {
  font-size: 0.75rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted-3);
  margin-bottom: 1.5rem;
}
.grid-meta strong { color: var(--muted); font-weight: 500; }

/* ---------- grid de projetos ---------- */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.4rem;
}
@media (max-width: 980px) { .projects-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .projects-grid { grid-template-columns: 1fr; } }

.card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  transition: border-color 0.35s ease, transform 0.35s ease, box-shadow 0.35s ease;
  opacity: 0;
  transform: translateY(24px);
}
.card.in {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1),
    border-color 0.35s ease, box-shadow 0.35s ease;
}
.card:hover {
  border-color: rgba(255, 255, 255, 0.22);
  box-shadow: 0 20px 50px -20px rgba(0, 0, 0, 0.8), 0 0 40px -18px rgba(255, 255, 255, 0.18);
}
.card .thumb {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border-bottom: 1px solid var(--line-soft);
  background: var(--bg-soft);
}
.card .thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.001);
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1), filter 0.6s ease;
  filter: saturate(0.92);
}
.card:hover .thumb img { transform: scale(1.045); filter: saturate(1); }
.card .thumb::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(5, 5, 5, 0.35), transparent 45%);
  pointer-events: none;
}
.card .chip {
  position: absolute;
  top: 0.8rem;
  left: 0.8rem;
  z-index: 2;
  font-size: 0.62rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #fff;
  background: rgba(5, 5, 5, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  padding: 0.32rem 0.75rem;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.card .body {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.9rem;
  padding: 1.15rem 1.25rem 1.3rem;
  flex: 1;
}
.card h3 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.02rem;
  letter-spacing: -0.01em;
  color: #fff;
  line-height: 1.25;
}
.card .tagline {
  margin-top: 0.35rem;
  font-size: 0.82rem;
  font-weight: 300;
  color: var(--muted-2);
  line-height: 1.45;
}
.card .arrow {
  flex: none;
  width: 34px;
  height: 34px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  display: grid;
  place-items: center;
  color: var(--muted);
  transition: background 0.3s ease, color 0.3s ease, border-color 0.3s ease, transform 0.3s ease;
}
.card .arrow svg { width: 13px; height: 13px; }
.card:hover .arrow {
  background: #fff;
  color: #000;
  border-color: #fff;
  transform: rotate(45deg);
}

.empty-state {
  grid-column: 1 / -1;
  text-align: center;
  padding: 4rem 0;
  color: var(--muted-2);
  font-weight: 300;
}

/* ---------- CTA final ---------- */
.cta {
  border-top: 1px solid var(--line-soft);
  background:
    radial-gradient(50% 60% at 50% 100%, rgba(255, 255, 255, 0.06), transparent 75%),
    var(--bg-soft);
  text-align: center;
  padding: 8rem 0;
}
.cta h2 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.1rem, 5vw, 3.8rem);
  line-height: 1.08;
  letter-spacing: -0.02em;
  color: #fff;
  max-width: 18ch;
  margin-inline: auto;
  text-wrap: balance;
}
.cta p {
  max-width: 54ch;
  margin: 1.5rem auto 3rem;
  font-weight: 300;
  color: var(--muted);
}
.cta-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 1.8rem;
  margin-top: 3rem;
  font-size: 0.85rem;
  color: var(--muted-2);
}
.cta-links a {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: color 0.3s ease;
}
.cta-links a:hover { color: #fff; }
.cta-links svg { width: 15px; height: 15px; color: var(--accent); }

/* ---------- botão shiny (portado da landing Panterium) ---------- */
.shiny-cta {
  --shiny-cta-bg: #000;
  --shiny-cta-bg-subtle: #1a1818;
  --shiny-cta-fg: #fff;
  --shiny-cta-highlight: #fff;
  --shiny-cta-highlight-subtle: #ccc;
  --animation: gradient-angle linear infinite;
  --duration: 3s;
  --shadow-size: 2px;
  --transition: 0.8s cubic-bezier(0.25, 1, 0.5, 1);
  isolation: isolate;
  cursor: pointer;
  outline-offset: 4px;
  color: var(--shiny-cta-fg);
  background: linear-gradient(var(--shiny-cta-bg), var(--shiny-cta-bg)) padding-box,
    conic-gradient(
        from calc(var(--gradient-angle) - var(--gradient-angle-offset)),
        transparent,
        var(--shiny-cta-highlight) var(--gradient-percent),
        var(--gradient-shine) calc(var(--gradient-percent) * 2),
        var(--shiny-cta-highlight) calc(var(--gradient-percent) * 3),
        transparent calc(var(--gradient-percent) * 4)
      )
      border-box;
  box-shadow: inset 0 0 0 1px var(--shiny-cta-bg-subtle);
  border: 1px solid transparent;
  border-radius: 360px;
  padding: 1.25rem 2.5rem;
  font-family: var(--font-sans);
  font-size: 1.125rem;
  font-weight: 500;
  line-height: 1.2;
  position: relative;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  transition-property: --gradient-angle-offset, --gradient-percent, --gradient-shine;
}
.shiny-cta:before,
.shiny-cta:after,
.shiny-cta span:before {
  content: "";
  pointer-events: none;
  z-index: -1;
  position: absolute;
  inset-block-start: 50%;
  inset-inline-start: 50%;
  translate: -50% -50%;
}
.shiny-cta:active { translate: 0 1px; }
.shiny-cta:before {
  --size: calc(100% - var(--shadow-size) * 3);
  --position: 2px;
  --space: calc(var(--position) * 2);
  width: var(--size);
  height: var(--size);
  background: radial-gradient(circle at var(--position) var(--position), white calc(var(--position) / 4), transparent 0)
    padding-box;
  background-size: var(--space) var(--space);
  background-repeat: space;
  -webkit-mask-image: conic-gradient(from calc(var(--gradient-angle) + 45deg), black, transparent 10% 90%, black);
  mask-image: conic-gradient(from calc(var(--gradient-angle) + 45deg), black, transparent 10% 90%, black);
  border-radius: inherit;
  opacity: 0.4;
}
.shiny-cta:after {
  --animation: shimmer linear infinite;
  aspect-ratio: 1;
  width: 100%;
  background: linear-gradient(-50deg, transparent, var(--shiny-cta-highlight), transparent);
  opacity: 0.6;
  -webkit-mask-image: radial-gradient(circle at bottom, transparent 40%, #000);
  mask-image: radial-gradient(circle at bottom, transparent 40%, #000);
}
.shiny-cta span { z-index: 1; }
.shiny-cta span:before {
  --size: calc(100% + 1rem);
  width: var(--size);
  height: var(--size);
  box-shadow: inset 0 -1ex 2rem 4px var(--shiny-cta-highlight);
  opacity: 0;
  transition: opacity var(--transition);
  animation: calc(var(--duration) * 1.5) breathe linear infinite;
}
.shiny-cta,
.shiny-cta:before,
.shiny-cta:after {
  animation: var(--animation) var(--duration), var(--animation) calc(var(--duration) / 0.4) reverse paused;
  animation-composition: add;
}
.shiny-cta:is(:hover, :focus-visible) {
  --gradient-percent: 20%;
  --gradient-angle-offset: 95deg;
  --gradient-shine: var(--shiny-cta-highlight-subtle);
}
.shiny-cta:is(:hover, :focus-visible),
.shiny-cta:is(:hover, :focus-visible):before,
.shiny-cta:is(:hover, :focus-visible):after {
  animation-play-state: running;
}
@keyframes gradient-angle { to { --gradient-angle: 360deg; } }
@keyframes shimmer { to { rotate: 360deg; } }
@keyframes breathe { 0%, 100% { scale: 1; } 50% { scale: 1.2; } }

/* ---------- footer ---------- */
.site-footer {
  border-top: 1px solid var(--line-soft);
  padding: 3.5rem 0;
}
.site-footer .container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}
.site-footer .brand {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: #fff;
}
.site-footer .slogan {
  font-size: 0.82rem;
  font-weight: 300;
  color: var(--muted-2);
}
.site-footer .copy {
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted-3);
}

/* ---------- reveal genérico ---------- */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.9s cubic-bezier(0.16, 1, 0.3, 1), transform 0.9s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal.in { opacity: 1; transform: translateY(0); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal, .card { opacity: 1 !important; transform: none !important; transition: none !important; }
  .scroll-cue svg { animation: none; }
  .shiny-cta, .shiny-cta:before, .shiny-cta:after, .shiny-cta span:before { animation: none; }
}
