:root {
  --bg: #000;
  --fg: #fff;
  --muted: #8a8a8a;
  --line: #1f1f1f;
  --panel: #0b0b0b;
}

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

html { scroll-behavior: smooth; background: var(--bg); }

body {
  position: relative;
  background: var(--bg);
  color: var(--fg);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }

/* Grid de linhas com leve movimento */
.bg-grid {
  position: fixed;
  inset: -50%;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px);
  background-size: 56px 56px;
  transform: perspective(600px) rotateX(58deg);
  transform-origin: 50% 100%;
  animation: grid-move 14s linear infinite;
  pointer-events: none;
  z-index: 0;
  mask-image: radial-gradient(ellipse at 50% 30%, #000 10%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse at 50% 30%, #000 10%, transparent 70%);
}

@keyframes grid-move {
  from { background-position: 0 0, 0 0; }
  to { background-position: 0 56px, 0 0; }
}

/* Partículas leves (canvas) */
#particles {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
  opacity: 0.6;
}

main, header, footer { position: relative; z-index: 1; }

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem clamp(1.25rem, 5vw, 4rem);
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--line);
}

.logo { height: 34px; width: auto; display: block; }

nav { display: flex; gap: 1.5rem; }
nav a { color: var(--muted); font-size: 0.95rem; transition: color 0.2s; }
nav a:hover { color: var(--fg); }

.hero {
  min-height: 80vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 4rem clamp(1.25rem, 5vw, 4rem);
  border-bottom: 1px solid var(--line);
}

.eyebrow {
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.8rem;
  margin-bottom: 1.25rem;
}

.title {
  font-size: clamp(3rem, 11vw, 8.5rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 0.95;
}

.title .line {
  display: block;
  overflow: hidden;
}

/* Letras que surgem deslizando */
.title .line {
  animation: slide-up 0.9s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}
.title .line:nth-child(2) { animation-delay: 0.18s; }

.title .accent {
  color: transparent;
  -webkit-text-stroke: 1px var(--fg);
  text-stroke: 1px var(--fg);
}

@keyframes slide-up {
  from { transform: translateY(105%); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

.lead {
  margin-top: 1.5rem;
  max-width: 36rem;
  color: #d6d6d6;
  font-size: clamp(1.05rem, 2vw, 1.25rem);
}

.btn {
  display: inline-block;
  margin-top: 2.25rem;
  align-self: flex-start;
  padding: 0.85rem 1.6rem;
  border: 1px solid var(--fg);
  color: var(--fg);
  font-size: 0.95rem;
  transition: background 0.25s, color 0.25s, box-shadow 0.25s;
}
.btn:hover {
  background: var(--fg);
  color: var(--bg);
  box-shadow: 0 0 24px rgba(255, 255, 255, 0.25);
}

/* Revelação ao rolar */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}
.reveal.in { opacity: 1; transform: none; }

/* No hero, a revelação entra sem depender de rolagem */
.hero .reveal { opacity: 0; animation: fade-in 0.9s ease forwards; }
.hero .reveal:nth-child(1) { animation-delay: 0.1s; }
.hero .reveal:nth-child(2) { animation-delay: 0.45s; }
.hero .reveal:nth-child(3) { animation-delay: 0.7s; }

@keyframes fade-in {
  to { opacity: 1; }
}

.section {
  padding: 5rem clamp(1.25rem, 5vw, 4rem);
  border-bottom: 1px solid var(--line);
}

.section h2 {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 600;
  margin-bottom: 2.5rem;
  letter-spacing: -0.01em;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}

.card {
  background: var(--bg);
  padding: 2rem;
  transition: background 0.3s, box-shadow 0.3s;
}
.card:hover {
  background: var(--panel);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.12);
}

.index {
  display: block;
  color: var(--muted);
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  margin-bottom: 1.5rem;
}

.card h3 { font-size: 1.2rem; font-weight: 600; margin-bottom: 0.5rem; }
.card p { color: var(--muted); font-size: 0.95rem; }

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
}
.split p { color: #d6d6d6; max-width: 34rem; }

.facts { display: grid; gap: 1.5rem; }
.facts div { border-top: 1px solid var(--line); padding-top: 1rem; }
.facts dt { color: var(--muted); font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.12em; }
.facts dd { font-size: 1.1rem; margin-top: 0.25rem; }

.contact .muted { color: var(--muted); }

.footer {
  padding: 2rem clamp(1.25rem, 5vw, 4rem);
  color: var(--muted);
  font-size: 0.85rem;
}

@media (max-width: 760px) {
  .topbar { flex-direction: column; gap: 0.9rem; }
  nav { gap: 1.25rem; }
  .split { grid-template-columns: 1fr; gap: 2rem; }
  .section { padding: 3.5rem 1.25rem; }
  .hero { min-height: 70vh; padding: 3rem 1.25rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal, .hero .reveal { opacity: 1; transform: none; }
  #particles { display: none; }
}
