/* Matheus Cansini — landing executiva (metodologia ArenaStream / equipe) */

:root {
  --bg: #0a0c10;
  --bg-soft: #12151c;
  --card: rgba(22, 26, 36, 0.78);
  --line: rgba(255, 255, 255, 0.09);
  --text: #f3f4f7;
  --muted: #9aa1b2;
  --accent: #c8a45a;
  --accent-soft: #e2c07a;
  --accent-dim: rgba(200, 164, 90, 0.16);
  --radius: 20px;
  --shadow: 0 30px 80px rgba(0, 0, 0, 0.55);
  --font: Outfit, system-ui, sans-serif;
  --display: "Cormorant Garamond", Georgia, serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  line-height: 1.6;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

/* ---------- Cena 3D ---------- */
.scene {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  background:
    radial-gradient(1100px 620px at 78% -12%, rgba(200, 164, 90, 0.22), transparent 62%),
    radial-gradient(900px 520px at 6% 12%, rgba(60, 90, 140, 0.18), transparent 60%),
    linear-gradient(180deg, #0a0c10 0%, #10131a 45%, #0a0c10 100%);
  perspective: 900px;
}

.scene-grid {
  position: absolute;
  left: -30%;
  right: -30%;
  bottom: -22%;
  height: 105%;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.07) 1px, transparent 1px);
  background-size: 68px 68px;
  transform: rotateX(72deg) translateZ(-120px);
  transform-origin: 50% 100%;
  mask-image: linear-gradient(to top, #000 6%, transparent 72%);
  -webkit-mask-image: linear-gradient(to top, #000 6%, transparent 72%);
  animation: gridflow 22s linear infinite;
}

@keyframes gridflow {
  to { background-position: 0 68px, 68px 0; }
}

.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.55;
  will-change: transform;
}
.orb-1 { width: 520px; height: 520px; top: -140px; right: -80px; background: rgba(200, 164, 90, 0.42); }
.orb-2 { width: 460px; height: 460px; top: 42%; left: -160px; background: rgba(58, 96, 160, 0.35); }
.orb-3 { width: 380px; height: 380px; bottom: -120px; right: 22%; background: rgba(180, 120, 60, 0.28); }

.scene-noise {
  position: absolute;
  inset: 0;
  opacity: 0.3;
  background-image: radial-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 4px 4px;
}

/* ---------- Topbar ---------- */
.topbar {
  position: sticky;
  top: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding: 0.9rem clamp(1rem, 4vw, 3.5rem);
  backdrop-filter: blur(14px);
  background: rgba(10, 12, 16, 0.72);
  border-bottom: 1px solid var(--line);
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  font-family: var(--font);
  font-size: 0.98rem;
  font-weight: 600;
  letter-spacing: 0.01em;
}
.brand-logo {
  height: 40px;
  width: 40px;
  border-radius: 12px;
  object-fit: cover;
  flex-shrink: 0;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.35);
}
.brand-text b {
  color: var(--accent);
  font-weight: 700;
}

.topnav {
  display: flex;
  gap: 1.5rem;
  margin-left: auto;
  font-size: 0.95rem;
  color: var(--muted);
}
.topnav a:hover { color: var(--text); }
.topbar-cta { margin-left: 0.5rem; }

/* ---------- Botões ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.78rem 1.5rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.98rem;
  border: 1px solid transparent;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-soft));
  color: #1a1408;
  box-shadow: 0 14px 34px rgba(200, 164, 90, 0.32);
}
.btn-outline {
  border-color: rgba(255, 255, 255, 0.22);
  color: var(--text);
  background: rgba(255, 255, 255, 0.04);
}
.btn-lg { padding: 0.95rem 2rem; font-size: 1.05rem; }

/* ---------- Hero ---------- */
.hero {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.15fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
  padding: clamp(2.2rem, 6vw, 5rem) clamp(1rem, 4vw, 3.5rem) clamp(2rem, 5vw, 3.5rem);
  max-width: 1400px;
  margin: 0 auto;
  min-height: calc(100vh - 72px);
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.42rem 0.95rem;
  border-radius: 999px;
  border: 1px solid rgba(200, 164, 90, 0.45);
  background: var(--accent-dim);
  font-size: 0.85rem;
  font-weight: 500;
}
.pill .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent-soft);
  box-shadow: 0 0 0 0 rgba(226, 192, 122, 0.7);
  animation: pulse 1.8s infinite;
}
@keyframes pulse {
  70% { box-shadow: 0 0 0 9px rgba(226, 192, 122, 0); }
  100% { box-shadow: 0 0 0 0 rgba(226, 192, 122, 0); }
}

.hero-name {
  margin: 1.15rem 0 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.05em;
  font-family: var(--display);
  font-size: clamp(3.4rem, 8.2vw, 6.2rem);
  line-height: 0.92;
  letter-spacing: -0.03em;
  font-weight: 600;
}
.hero-name-first {
  color: var(--text);
  font-weight: 500;
  letter-spacing: -0.02em;
}
.hero-name-last {
  color: var(--accent);
  font-weight: 700;
  font-style: italic;
  letter-spacing: -0.015em;
}

.lead {
  color: var(--muted);
  font-size: clamp(1.05rem, 1.6vw, 1.22rem);
  max-width: 34rem;
}

.cta-row { display: flex; flex-wrap: wrap; gap: 0.8rem; margin: 1.8rem 0 0; }

.hero-stage {
  position: relative;
  transform-style: preserve-3d;
  perspective: 1400px;
  width: min(100%, 620px);
  max-width: none;
  margin-left: auto;
}
.stage-glow {
  position: absolute;
  inset: 6% 2% 2%;
  background: radial-gradient(circle at 50% 40%, rgba(200, 164, 90, 0.45), transparent 68%);
  filter: blur(56px);
}
.portrait {
  position: relative;
  margin: 0;
  border-radius: 32px;
  overflow: hidden;
  border: 1px solid rgba(200, 164, 90, 0.28);
  background: linear-gradient(160deg, #1a1e28, #0d1016);
  box-shadow: var(--shadow);
  transform: rotateY(-7deg) rotateX(3deg);
  transition: transform 0.5s cubic-bezier(0.2, 0.7, 0.3, 1);
  aspect-ratio: 4 / 5;
  min-height: clamp(420px, 62vh, 680px);
}
.portrait::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(180deg, transparent 55%, rgba(10, 12, 16, 0.45) 100%),
    linear-gradient(90deg, rgba(200, 164, 90, 0.08), transparent 40%);
}
.portrait img {
  position: relative;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 18%;
  image-rendering: auto;
  transform: scale(1.02);
}
.hero-stage:hover .portrait { transform: rotateY(-2deg) rotateX(1deg); }

/* ---------- Seções ---------- */
.section {
  max-width: 1240px;
  margin: 0 auto;
  padding: clamp(3rem, 7vw, 5.5rem) clamp(1rem, 4vw, 3.5rem);
}

.section-head { max-width: 42rem; margin-bottom: 2.8rem; }
.section-head p { color: var(--muted); }

.eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent-soft);
  font-weight: 600;
  margin-bottom: 0.7rem;
}

h2 {
  margin: 0 0 0.7rem;
  font-family: var(--display);
  font-size: clamp(1.7rem, 3.2vw, 2.6rem);
  line-height: 1.12;
  letter-spacing: -0.02em;
}

.card-3d {
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--card);
  backdrop-filter: blur(12px);
  box-shadow: var(--shadow);
  transition: transform 0.4s cubic-bezier(0.2, 0.7, 0.3, 1), border-color 0.3s ease;
}
.card-3d:hover { border-color: rgba(200, 164, 90, 0.4); }

.split {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}
.split-copy p { color: var(--muted); font-size: 1.05rem; }

.about-panel { padding: 0.4rem 0; }
.about-panel ul { list-style: none; margin: 0; padding: 0.4rem 0; }
.about-panel li {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--line);
}
.about-panel li:last-child { border-bottom: 0; }
.about-panel strong { font-size: 1.05rem; }
.about-panel span { color: var(--muted); font-size: 0.92rem; }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 1.4rem;
  color: var(--accent-soft);
  font-weight: 600;
}
.link-arrow span { transition: transform 0.2s ease; }
.link-arrow:hover span { transform: translateX(4px); }

/* ---------- Projetos ---------- */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.4rem;
}

.project {
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.project:hover { transform: translateY(-8px); }
.project-media {
  background: #05060a;
  border-bottom: 1px solid var(--line);
  aspect-ratio: 16 / 10;
  overflow: hidden;
}
.project-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  transition: transform 0.5s ease;
}
.project:hover .project-media img { transform: scale(1.04); }
.project-body { padding: 1.25rem 1.4rem 1.5rem; }
.project-body h3 {
  margin: 0 0 0.4rem;
  font-family: var(--display);
  font-size: 1.2rem;
}
.project-body p { margin: 0; color: var(--muted); font-size: 0.95rem; }
.project-tag {
  display: inline-block;
  margin-bottom: 0.55rem;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-soft);
  font-weight: 600;
}

/* ---------- Atuação ---------- */
.pillars {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.2rem;
}
.pillar { padding: 1.6rem 1.5rem 1.8rem; }
.pillar:hover { transform: translateY(-6px); }
.pillar-tag {
  display: inline-block;
  font-family: var(--display);
  font-size: 0.85rem;
  color: var(--accent);
  margin-bottom: 1rem;
  font-weight: 700;
}
.pillar h3 {
  margin: 0 0 0.6rem;
  font-family: var(--display);
  font-size: 1.25rem;
}
.pillar p { margin: 0; color: var(--muted); font-size: 0.98rem; }

/* ---------- Contato ---------- */
.contact-panel {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: stretch;
  padding: clamp(1.8rem, 4vw, 2.8rem);
  border-radius: calc(var(--radius) + 4px);
  border: 1px solid var(--line);
  background: linear-gradient(145deg, rgba(28, 32, 44, 0.9), rgba(16, 18, 26, 0.85));
  box-shadow: var(--shadow);
}
.contact-copy p { color: var(--muted); max-width: 32rem; }
.contact-copy .btn { margin-top: 1.4rem; }

.contact-channels {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}
.contact-channels a {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  padding: 1rem 1.15rem;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
  transition: border-color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}
.contact-channels a:hover {
  border-color: rgba(200, 164, 90, 0.45);
  background: var(--accent-dim);
  transform: translateX(4px);
}
.ch-label {
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 600;
}
.ch-value { font-weight: 600; font-size: 1.02rem; }

.footer {
  padding: 2rem clamp(1rem, 4vw, 3.5rem) 3rem;
  text-align: center;
  color: var(--muted);
  font-size: 0.9rem;
  border-top: 1px solid var(--line);
}

/* ---------- Motion / reveal ---------- */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.is-in {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  .scene-grid, .pill .dot { animation: none; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .btn:hover, .project:hover, .pillar:hover { transform: none; }
}

@media (max-width: 960px) {
  .hero,
  .split,
  .contact-panel,
  .pillars {
    grid-template-columns: 1fr;
  }
  .hero { min-height: auto; }
  .hero-stage { margin: 0 auto; width: min(100%, 480px); }
  .portrait {
    transform: none;
    min-height: clamp(380px, 70vw, 560px);
  }
  .hero-stage:hover .portrait { transform: none; }
  .hero-name { font-size: clamp(3rem, 14vw, 4.4rem); }
  .topnav { display: none; }
}
