/* ─── TOKENS ─────────────────────────────────────────────── */
:root {
  --bg:        #050505;
  --surface:   #111111;
  --glass:     #1a1a1a;
  --white:     #ffffff;
  --gray-1:    rgba(255,255,255,0.85);
  --gray-2:    rgba(255,255,255,0.45);
  --gray-3:    rgba(255,255,255,0.18);
  --gray-4:    rgba(255,255,255,0.07);
  --border:    rgba(255,255,255,0.08);

  --font-display: 'Anton', sans-serif;
  --font-body:    'Montserrat', sans-serif;

  --ease-expo:   cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.76, 0, 0.24, 1);
}

/* ─── RESET ──────────────────────────────────────────────── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: auto; }
body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--white);
  overflow-x: hidden;
  cursor: none;
}
a { color: inherit; text-decoration: none; }
img, svg { display: block; }
::selection { background: rgba(255,255,255,0.1); }

/* ─── GRAIN ──────────────────────────────────────────────── */
.grain {
  position: fixed;
  inset: 0;
  z-index: 9999;
  pointer-events: none;
  opacity: 0.038;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
}

/* ─── PROGRESS BAR ───────────────────────────────────────── */
.progress-bar {
  position: fixed;
  top: 0; left: 0;
  height: 1px;
  width: 0%;
  background: var(--white);
  z-index: 10000;
  transition: width 0.08s linear;
}

/* ─── CURSOR ─────────────────────────────────────────────── */
.cursor {
  position: fixed;
  width: 8px; height: 8px;
  background: var(--white);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9998;
  transform: translate(-50%, -50%);
  transition: width 0.3s var(--ease-expo), height 0.3s var(--ease-expo), opacity 0.3s;
  mix-blend-mode: difference;
}
body.cursor-hover .cursor {
  width: 44px; height: 44px;
  opacity: 0.5;
}

/* ─── SHARED TYPOGRAPHY ──────────────────────────────────── */
.eyebrow {
  display: block;
  font-size: 0.57rem;
  letter-spacing: 0.46em;
  text-transform: uppercase;
  color: var(--gray-2);
  margin-bottom: 1.4rem;
}

.label {
  display: block;
  font-size: 0.55rem;
  letter-spacing: 0.42em;
  text-transform: uppercase;
  color: var(--gray-2);
  margin-bottom: 1rem;
}

/* ─── NAV ────────────────────────────────────────────────── */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 5vw;
  height: 72px;
  transition: background 0.4s, border-color 0.4s;
  border-bottom: 1px solid transparent;
}

.nav.scrolled {
  background: rgba(5,5,5,0.88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom-color: var(--border);
}

.nav-brand img { height: 26px; width: auto; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 2.8rem;
}

.nav-link {
  font-size: 0.6rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gray-2);
  transition: color 0.28s;
}
.nav-link:hover { color: var(--white); }

.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-size: 0.6rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--white);
  border: 1px solid var(--border);
  padding: 0.72rem 1.5rem;
  transition: border-color 0.3s, background 0.3s, box-shadow 0.3s;
}
.nav-cta:hover {
  border-color: rgba(255,255,255,0.28);
  background: rgba(255,255,255,0.04);
  box-shadow: 0 0 32px rgba(255,255,255,0.05);
}

.nav-burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}
.nav-burger span {
  display: block;
  width: 22px; height: 1px;
  background: var(--white);
  transition: transform 0.3s, opacity 0.3s;
}
.nav-burger[aria-expanded="true"] span:first-child { transform: translateY(6px) rotate(45deg); }
.nav-burger[aria-expanded="true"] span:last-child  { transform: translateY(-6px) rotate(-45deg); }

.nav-mobile {
  display: none;
  position: fixed;
  top: 72px; left: 0; right: 0;
  background: rgba(5,5,5,0.97);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
  z-index: 999;
  padding: 2.5rem 5vw 3rem;
  flex-direction: column;
  gap: 1.8rem;
}
.nav-mobile a {
  font-size: 0.62rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gray-2);
  transition: color 0.3s;
}
.nav-mobile a:hover { color: var(--white); }
.nav-mobile.open { display: flex; }

/* ─── HERO ───────────────────────────────────────────────── */
.hero {
  position: relative;
  width: 100%;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: var(--bg);
}

/* spotlight sutil atrás do título */
.hero::before {
  content: '';
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 60vw; height: 60vh;
  background: radial-gradient(ellipse, rgba(255,255,255,0.04) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

/* vignette nas bordas */
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 90% 80% at 50% 50%, transparent 40%, var(--bg) 100%);
  pointer-events: none;
  z-index: 0;
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 0 5vw;
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(5rem, 17vw, 16rem);
  line-height: 0.88;
  letter-spacing: -0.01em;
  color: var(--white);
  margin-bottom: 2.2rem;
}

.line-wrap { display: block; overflow: hidden; }

.line {
  display: block;
  transform: translateY(110%);
  animation: lineUp 1s var(--ease-expo) forwards;
}

.hero .line-wrap:nth-child(1) .line { animation-delay: 0.06s; }
.hero .line-wrap:nth-child(2) .line { animation-delay: 0.2s; }

/* CTA section lines animação */
.cta-section .line-wrap:nth-child(1) .line { animation-play-state: paused; }
.cta-section .line-wrap:nth-child(2) .line { animation-play-state: paused; }
.cta-section.in-view .line-wrap:nth-child(1) .line {
  animation-play-state: running;
  animation-delay: 0s;
}
.cta-section.in-view .line-wrap:nth-child(2) .line {
  animation-play-state: running;
  animation-delay: 0.12s;
}

@keyframes lineUp { to { transform: translateY(0); } }

.hero-sub {
  font-size: 0.63rem;
  letter-spacing: 0.5em;
  text-transform: uppercase;
  color: var(--gray-2);
  opacity: 0;
  animation: fadeIn 1s ease 0.65s forwards;
}

.hero .eyebrow {
  opacity: 0;
  animation: fadeIn 1s ease 0.25s forwards;
}

@keyframes fadeIn { to { opacity: 1; } }

.scroll-cue {
  position: absolute;
  bottom: 2.8rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.7rem;
  opacity: 0;
  animation: fadeIn 1s ease 1.3s forwards;
}

.scroll-label {
  font-size: 0.49rem;
  letter-spacing: 0.58em;
  text-transform: uppercase;
  color: var(--gray-2);
}

.scroll-line {
  width: 1px; height: 50px;
  background: var(--gray-4);
  overflow: hidden;
}

.scroll-line-inner {
  width: 100%; height: 100%;
  background: var(--white);
  transform: translateY(-100%);
  animation: scrollDrop 1.8s ease 1.5s infinite;
}

@keyframes scrollDrop {
  0%   { transform: translateY(-100%); }
  100% { transform: translateY(100%); }
}

/* ─── STAGE 3D ───────────────────────────────────────────── */
.stage {
  position: relative;
  height: 100vh;
  background: var(--bg);
  overflow: hidden;
}

#canvas-wrap {
  position: absolute;
  inset: 0;
  z-index: 1;
}
#canvas-wrap canvas {
  width: 100% !important;
  height: 100% !important;
  display: block;
}

.marquee {
  position: absolute;
  bottom: 7%;
  left: 0;
  width: 100%;
  overflow: hidden;
  z-index: 8;
  pointer-events: none;
}

.marquee-track {
  display: flex;
  width: max-content;
  will-change: transform;
}

.marquee-track span {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 4.2vw, 4.8rem);
  letter-spacing: 0.04em;
  color: rgba(255,255,255,0.038);
  white-space: nowrap;
  line-height: 1;
}

.stage-copy {
  position: absolute;
  left: 7vw;
  top: 50%;
  transform: translateY(-50%);
  z-index: 9;
  max-width: 46%;
  pointer-events: none;
}

.stage-h2 {
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 4.8vw, 5rem);
  line-height: 0.94;
  letter-spacing: -0.01em;
  color: var(--white);
  margin-bottom: 1.6rem;
}

.sh-line { display: block; overflow: hidden; }
.sh-inner {
  display: block;
  transform: translateY(110%);
  will-change: transform;
}

.stage-p {
  font-size: 0.8rem;
  line-height: 1.95;
  font-weight: 300;
  color: var(--gray-2);
  max-width: 340px;
  opacity: 0;
  transform: translateY(22px);
  will-change: transform, opacity;
}

/* ─── SERVICES ───────────────────────────────────────────── */
.services {
  background: var(--bg);
  padding: 14vh 7vw;
  border-top: 1px solid var(--border);
}

.services-inner { max-width: 1160px; margin: 0 auto; }

.section-header { margin-bottom: 6.5rem; }

.section-title {
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 6.5vw, 6.5rem);
  line-height: 0.9;
  letter-spacing: -0.01em;
  color: var(--white);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--border);
}

.svc-card {
  background: var(--bg);
  padding: 3.8rem 3.2rem;
  position: relative;
  transition: background 0.4s, border 0.3s;
  border: 1px solid transparent;
  overflow: hidden;
}

.svc-card:hover {
  background: rgba(255,255,255,0.02);
  border-color: rgba(255,255,255,0.12);
  z-index: 1;
}

.svc-num {
  position: absolute;
  top: 2.6rem; right: 3rem;
  font-family: var(--font-display);
  font-size: clamp(5rem, 7vw, 7rem);
  line-height: 1;
  letter-spacing: -0.02em;
  color: rgba(255,255,255,0.04);
  user-select: none;
  transition: color 0.4s;
}

.svc-card:hover .svc-num { color: rgba(255,255,255,0.07); }

.svc-icon {
  color: var(--gray-2);
  margin-bottom: 2.2rem;
  transition: color 0.3s;
}
.svc-card:hover .svc-icon { color: var(--white); }

.svc-card h3 {
  font-family: var(--font-display);
  font-size: clamp(1.55rem, 2.1vw, 2.1rem);
  letter-spacing: 0.02em;
  color: var(--white);
  margin-bottom: 1.1rem;
  line-height: 1;
}

.svc-card p {
  font-size: 0.77rem;
  line-height: 1.95;
  font-weight: 300;
  color: var(--gray-2);
  max-width: 88%;
}

/* ─── RESULTS ────────────────────────────────────────────── */
.results {
  background: #080808;
  padding: 14vh 7vw;
  border-top: 1px solid var(--border);
}

.results-inner { max-width: 1160px; margin: 0 auto; }
.results-inner .eyebrow { margin-bottom: 5.5rem; }

.results-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--border);
}

.result-item {
  background: #080808;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  padding: 2.8rem 2.4rem;
}

.result-num {
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 4.8vw, 5.2rem);
  line-height: 1;
  letter-spacing: -0.01em;
  color: var(--white);
}

.result-label {
  font-size: 0.6rem;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--gray-2);
  font-weight: 300;
  line-height: 1.6;
}

/* ─── CTA ────────────────────────────────────────────────── */
.cta-section {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: var(--bg);
  border-top: 1px solid var(--border);
  overflow: hidden;
}

.cta-inner {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 12vh 7vw 6vh;
  max-width: 860px;
}

.cta-title {
  font-family: var(--font-display);
  font-size: clamp(3rem, 7vw, 7.5rem);
  line-height: 0.9;
  letter-spacing: -0.01em;
  color: var(--white);
  margin-bottom: 2.2rem;
}

.cta-sub {
  font-size: 0.84rem;
  line-height: 1.95;
  font-weight: 300;
  color: var(--gray-2);
  max-width: 520px;
  margin: 0 auto 3.8rem;
}

.cta-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.2rem;
  margin-bottom: 2.2rem;
  flex-wrap: wrap;
}

/* Buttons */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  background: var(--white);
  color: var(--bg);
  padding: 1.1rem 2.6rem;
  font-size: 0.6rem;
  font-weight: 600;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  transition: background 0.3s, transform 0.25s, box-shadow 0.3s;
}

.btn-primary:hover {
  background: rgba(255,255,255,0.88);
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(255,255,255,0.1);
}

.btn-ghost {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--border);
  color: var(--gray-1);
  padding: 1.1rem 2.2rem;
  font-size: 0.6rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  transition: border-color 0.3s, color 0.3s;
}
.btn-ghost:hover {
  border-color: rgba(255,255,255,0.28);
  color: var(--white);
}

.cta-fine {
  font-size: 0.54rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--gray-3);
}

.cta-bg-text {
  position: absolute;
  bottom: 4.5rem;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--font-display);
  font-size: clamp(8rem, 22vw, 22rem);
  line-height: 1;
  color: rgba(255,255,255,0.022);
  white-space: nowrap;
  pointer-events: none;
  user-select: none;
  z-index: 1;
  letter-spacing: -0.02em;
}

/* ─── FOOTER ─────────────────────────────────────────────── */
.footer {
  position: relative;
  z-index: 3;
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 2.4rem 7vw;
  margin-top: 8rem;
  border-top: 1px solid var(--border);
  font-size: 0.53rem;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--gray-3);
}

.footer-links {
  display: flex;
  gap: 2.2rem;
  align-items: center;
}
.footer-links a:hover { color: var(--gray-2); }

/* ─── WA FLOAT ───────────────────────────────────────────── */
.wa-float {
  position: fixed;
  bottom: 2rem; right: 2rem;
  width: 52px; height: 52px;
  background: #25D366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 900;
  box-shadow: 0 4px 20px rgba(37,211,102,0.28);
  transition: transform 0.3s var(--ease-expo), box-shadow 0.3s;
  color: #fff;
}
.wa-float:hover {
  transform: scale(1.1) translateY(-2px);
  box-shadow: 0 8px 32px rgba(37,211,102,0.4);
}

/* ─── RESPONSIVE ─────────────────────────────────────────── */
@media (max-width: 900px) {
  .nav-links { display: none; }
  .nav-burger { display: flex; }
  .stage-copy { max-width: 80%; }
}

@media (max-width: 768px) {
  .services-grid { grid-template-columns: 1fr; }
  .results-grid { grid-template-columns: repeat(2, 1fr); }
  .stage-copy { left: 5vw; right: 5vw; max-width: 90%; }
  .footer { flex-direction: column; gap: 1.2rem; text-align: center; }
  .footer-links { flex-wrap: wrap; justify-content: center; gap: 1.4rem; }
  .cta-actions { flex-direction: column; align-items: stretch; text-align: center; }
  .btn-primary, .btn-ghost { justify-content: center; }
  body { cursor: auto; }
  .cursor { display: none; }
  .svc-num { font-size: 4rem; }
  #canvas-wrap { opacity: 0.5; }
}

@media (max-width: 480px) {
  .results-grid { grid-template-columns: 1fr; }
  .hero-title { font-size: clamp(4rem, 20vw, 7rem); }
}
