:root {
  --star: #090813;
  --atria-purple: #7000B0;
  --atria-pink: #FF46C0;
  --font-display: 'Syne', sans-serif;
  --font-body: 'Space Grotesk', sans-serif;
}

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

html {
  scrollbar-width: none; /* Hide scrollbar for a cleaner look */
  overflow-x: hidden;
}
::-webkit-scrollbar {
  display: none;
}

html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }

body {
  background-color: var(--star);
  color: #FAFAFA;
  font-family: var(--font-body);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  cursor: none; /* Hide default cursor */
}

::selection { background: rgba(255, 70, 192, 0.3); color: #fff; }

/* PRELOADER REMOVIDO */
@keyframes pulseLogo {
  0% { filter: drop-shadow(0 0 10px rgba(112, 0, 176, 0.5)); transform: scale(0.98); }
  100% { filter: drop-shadow(0 0 30px rgba(255, 70, 192, 0.8)); transform: scale(1.02); }
}

/* BACKGROUNDS */
#hero-video {
  position: fixed; inset: 0; width: 100%; height: 100%;
  object-fit: cover; z-index: 0;
  transform: scale(1.1); /* Slight zoom for parallax */
}
.video-overlay {
  position: fixed; inset: 0; z-index: 1;
  background: radial-gradient(circle at center, rgba(9, 8, 19, 0.4) 0%, rgba(9, 8, 19, 0.95) 100%);
  mix-blend-mode: multiply;
}
.atmospheric-glow {
  position: fixed; inset: 0; z-index: 1; pointer-events: none;
  background: radial-gradient(circle at 20% 80%, rgba(112, 0, 176, 0.15) 0%, transparent 40%),
              radial-gradient(circle at 80% 20%, rgba(255, 70, 192, 0.1) 0%, transparent 40%);
  mix-blend-mode: screen;
  opacity: 0;
}
.noise-overlay {
  position: fixed; inset: 0; z-index: 2; pointer-events: none;
  background-image: url('data:image/svg+xml,%3Csvg viewBox="0 0 200 200" xmlns="http://www.w3.org/2000/svg"%3E%3Cfilter id="noiseFilter"%3E%3CfeTurbulence type="fractalNoise" baseFrequency="0.85" numOctaves="3" stitchTiles="stitch"/%3E%3C/filter%3E%3Crect width="100%25" height="100%25" filter="url(%23noiseFilter)" opacity="0.05"/%3E%3C/svg%3E');
  opacity: 0.8;
}
#webgl-particles {
  position: fixed; inset: 0; width: 100%; height: 100%; z-index: 3; display: block;
  pointer-events: none;
}

/* MAIN CONTENT */
main { position: relative; z-index: 10; min-height: 150vh; }

.hero-container {
  position: relative; height: 100vh; width: 100%;
  display: flex; flex-direction: column; justify-content: center; align-items: center;
  padding: 2rem;
}

/* PERIPHERAL TEXTS */
.peri-text {
  font-family: var(--font-body);
  font-size: 0.65rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.6);
  line-height: 1.8;
  opacity: 0;
}
.top-left { position: absolute; top: 3rem; left: 3rem; }
.top-right { position: absolute; top: 3rem; right: 3rem; text-align: right; }

/* FLOATING DETAILS */
.floating-detail {
  position: absolute;
  font-size: 0.55rem;
  letter-spacing: 0.2em;
  color: rgba(255, 255, 255, 0.3);
  text-transform: uppercase;
  opacity: 0;
  mix-blend-mode: screen;
}
.fd-1 { top: 20%; left: 10%; }
.fd-2 { top: 75%; left: 15%; }
.fd-3 { top: 30%; right: 12%; }
.fd-4 { top: 65%; right: 8%; }
.fd-5 { bottom: 15%; right: 25%; }

/* HEADLINE */
.headline-wrap { text-align: center; perspective: 1000px; }
.hero-logo {
  width: 60px;
  margin: 0 auto 1.5rem auto;
  opacity: 0;
  will-change: transform, opacity, filter;
}
.hero-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(3rem, 7vw, 6rem);
  line-height: 0.9;
  letter-spacing: -0.03em;
  text-transform: uppercase;
  color: #FFF;
  text-shadow: 0 0 40px rgba(255,255,255,0.1);
  visibility: hidden; /* evita flash do texto cheio antes do SplitText entrar */
}
.hero-title div { display: inline-block; will-change: transform, opacity, filter; }

.subheadline {
  margin-top: 2rem;
  font-size: clamp(1rem, 1.5vw, 1.25rem);
  color: rgba(255,255,255,0.7);
  max-width: 600px;
  margin-left: auto; margin-right: auto;
  font-weight: 300;
  opacity: 0;
}

/* BUTTONS */
.btn-container {
  margin-top: 3.5rem;
  display: flex; gap: 1.5rem; justify-content: center;
  opacity: 0;
}
.magnetic-wrap { display: inline-block; padding: 1rem; }
.btn-premium {
  position: relative;
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  padding: 1.2rem 3rem;
  color: #FFF;
  font-family: var(--font-body);
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  cursor: none;
  overflow: hidden;
  transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}
.btn-premium::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(circle at center, rgba(255, 70, 192, 0.4), transparent 70%);
  opacity: 0; transition: opacity 0.5s ease;
  z-index: 0;
}
.btn-premium:hover {
  border-color: rgba(255, 255, 255, 0.4);
  background: rgba(255, 255, 255, 0.1);
  box-shadow: 0 0 30px rgba(112, 0, 176, 0.4), inset 0 0 15px rgba(255, 70, 192, 0.2);
  transform: scale(1.05);
}
.btn-premium:hover::before { opacity: 1; }
.btn-premium span { position: relative; z-index: 1; display: inline-block; }

.btn-primary {
  background: linear-gradient(135deg, rgba(112,0,176,0.8), rgba(255,70,192,0.6));
  border: 1px solid rgba(255,70,192,0.3);
}
.btn-primary:hover {
  background: linear-gradient(135deg, rgba(112,0,176,1), rgba(255,70,192,0.8));
}

/* SCROLL INDICATOR */
.scroll-indicator {
  position: absolute; bottom: 3rem; left: 50%; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 1rem;
  opacity: 0;
}
.scroll-text {
  font-size: 0.55rem; letter-spacing: 0.2em; text-transform: uppercase; color: rgba(255,255,255,0.4);
}
.scroll-line {
  width: 1px; height: 50px; background: rgba(255,255,255,0.1); position: relative; overflow: hidden;
}
.scroll-dot {
  position: absolute; top: 0; left: 0; width: 100%; height: 30%;
  background: linear-gradient(to bottom, transparent, #FF46C0, transparent);
  animation: scrollDrop 2s cubic-bezier(0.77, 0, 0.175, 1) infinite;
}
@keyframes scrollDrop {
  0% { transform: translateY(-100%); }
  100% { transform: translateY(300%); }
}

/* CURSOR */
.cursor-dot {
  position: fixed; top: 0; left: 0; width: 6px; height: 6px;
  background: #FFF; border-radius: 50%; pointer-events: none; z-index: 10000;
  transform: translate(-50%, -50%);
  box-shadow: 0 0 10px #FF46C0, 0 0 20px #7000B0;
}
.cursor-ring {
  position: fixed; top: 0; left: 0; width: 40px; height: 40px;
  border: 1px solid rgba(255,255,255,0.2); border-radius: 50%;
  pointer-events: none; z-index: 9999;
  transform: translate(-50%, -50%);
  transition: width 0.3s, height 0.3s, border-color 0.3s, background 0.3s;
}
body.hovering .cursor-ring {
  width: 60px; height: 60px;
  border-color: rgba(255, 70, 192, 0.5);
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(2px);
}

/* MARQUEE SECTION */
.marquee-section {
  position: relative; padding: 3vh 0; 
  border-top: 1px solid rgba(255,255,255,0.05); 
  border-bottom: 1px solid rgba(255,255,255,0.05); 
  overflow: hidden; white-space: nowrap; 
  background: rgba(9, 8, 19, 0.3); backdrop-filter: blur(10px);
  z-index: 10;
}
.marquee-track { display: inline-flex; will-change: transform; }
.marquee-set { 
  display: inline-flex; align-items: center; gap: 4vw; padding-right: 4vw; 
  font-family: var(--font-body); font-weight: 500; 
  font-size: clamp(1rem, 1.5vw, 1.5rem); letter-spacing: 0.2em; color: #FFF; text-transform: uppercase; 
}
.marquee-set i { font-style: normal; font-size: 0.8em; color: var(--atria-pink); text-shadow: 0 0 10px var(--atria-purple); }

/* NUMBERS SECTION */
.numbers-section {
  position: relative; z-index: 10;
  padding: 15vh 5vw;
  background: transparent;
  max-width: 1400px; margin: 0 auto;
}
.numbers-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem;
}
.number-card {
  text-align: center;
  padding: 4rem 2rem;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 24px;
  backdrop-filter: blur(16px);
  transition: transform 0.4s, border-color 0.4s;
  opacity: 0; transform: translateY(50px); /* For GSAP Animation */
}
.number-card:hover {
  border-color: rgba(255, 70, 192, 0.3);
  transform: translateY(-5px) !important;
  box-shadow: 0 20px 40px rgba(0,0,0,0.5), inset 0 0 20px rgba(112, 0, 176, 0.2);
}
.num-value {
  font-family: var(--font-display);
  font-size: clamp(3rem, 5vw, 4.5rem);
  font-weight: 800;
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-image: linear-gradient(135deg, #7000B0 0%, #FF46C0 50%, #FF7639 100%);
  margin-bottom: 1rem;
}
.num-label {
  font-family: var(--font-body);
  font-size: 0.85rem;
  letter-spacing: 0.15em;
  color: rgba(255,255,255,0.6);
  text-transform: uppercase;
}

/* CLIENTS SECTION */
.clients-section {
  position: relative; z-index: 10;
  padding: 5vh 0 5vh 0;
  text-align: center;
}
.clients-header { margin-bottom: 2rem; }
.section-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  color: #FFF;
  letter-spacing: -0.02em;
  text-transform: uppercase;
}
.clients-marquee-container {
  position: relative;
  overflow: hidden;
  white-space: nowrap;
  width: 100%;
}
.clients-marquee-track {
  display: inline-flex;
  will-change: transform;
}
.clients-marquee-set {
  display: inline-flex;
  align-items: center;
  gap: 6rem;
  padding-right: 6rem;
}
.client-logo {
  height: 250px;
  width: 450px;
  flex-shrink: 0;
  object-fit: contain;
  filter: brightness(0) invert(1) opacity(0.5);
}

/* CASES SECTION (HORIZONTAL SCROLL) */
.cases-section {
  position: relative;
  background: rgba(9, 8, 19, 0.5); /* Glass Background */
  backdrop-filter: blur(30px);
  -webkit-backdrop-filter: blur(30px);
  overflow: hidden;
  z-index: 10;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}
.cases-section::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 80vw;
  height: 80vw;
  background: radial-gradient(circle, rgba(255, 70, 192, 0.12) 0%, rgba(112, 0, 176, 0.08) 40%, transparent 70%);
  transform: translate(-50%, -50%);
  border-radius: 50%;
  pointer-events: none;
  z-index: -1;
  filter: blur(80px);
}
.cases-container {
  display: flex;
  width: max-content; /* Auto adjust width based on content */
  height: 100vh;
  align-items: center;
  padding-left: 10vw;
}
.cases-text-panel {
  width: 40vw;
  flex-shrink: 0;
  padding-right: 10vw;
}
.section-tag {
  font-family: var(--font-mono);
  color: var(--atria-pink);
  font-size: 0.85rem;
  letter-spacing: 0.2em;
  margin-bottom: 2rem;
  text-transform: uppercase;
}
.cases-headline {
  font-family: var(--font-display);
  font-size: clamp(4rem, 7vw, 7rem);
  font-weight: 800;
  line-height: 0.9;
  color: #FFF;
  margin-bottom: 3rem;
  text-transform: uppercase;
  letter-spacing: -0.04em;
  text-shadow: 0 0 40px rgba(255, 255, 255, 0.1);
}
.scroll-hint {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  letter-spacing: 0.2em;
  color: var(--star-dim);
}

.cases-gallery {
  display: flex;
  gap: 5vw;
  padding-right: 10vw;
}
.case-card {
  width: 35vw;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}
.case-image-wrapper {
  width: 100%;
  height: 60vh; /* Reduced slightly to fit copy */
  overflow: hidden;
  background: rgba(0,0,0,0.4);
  position: relative;
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  backdrop-filter: blur(10px);
}
.case-placeholder {
  width: 100%; height: 100%;
  background: linear-gradient(135deg, rgba(255,255,255,0.05), rgba(255,255,255,0.01));
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-mono); font-size: 0.8rem; color: var(--star-dim);
  text-transform: uppercase; letter-spacing: 0.1em; 
  border: 1px dashed rgba(255,255,255,0.1);
}
.case-img {
  width: 120%;
  height: 100%;
  object-fit: cover;
  transform: translateX(-10%);
  transition: filter 0.6s ease;
  filter: brightness(0.8);
}
.case-card:hover .case-img {
  filter: brightness(1.1);
}
.case-info {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255,255,255,0.1);
}
.case-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.case-title {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  color: #FFF;
}
.case-meta {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--atria-pink);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.case-desc {
  font-family: var(--font-body);
  font-size: 1.1rem;
  color: rgba(255,255,255,0.6);
  line-height: 1.6;
}

/* EXPONENTIAL CONTENT SECTION */
.exponential-section {
  padding: 15vh 5vw;
  background: var(--dark);
  position: relative;
  z-index: 10;
  border-top: 1px solid rgba(255,255,255,0.05);
}
.expo-container {
  max-width: 1600px;
  margin: 0 auto;
}
.expo-header {
  margin-bottom: 4rem;
  text-align: center;
}
.expo-title {
  font-family: var(--font-display);
  font-size: clamp(3rem, 6vw, 6rem);
  font-weight: 800;
  color: #FFF;
  line-height: 0.9;
  letter-spacing: -0.03em;
  text-transform: uppercase;
}
.expo-word {
  font-size: 0.7em;
  color: #FFF;
}

.expo-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  grid-auto-rows: 35vh;
  gap: 1.5rem;
}

.expo-item {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.05);
  background: #000;
  transform-origin: center;
}

/* Bento Grid Layout */
.expo-item-1 { grid-column: 1 / 8; grid-row: 1 / 3; }
.expo-item-2 { grid-column: 8 / 13; grid-row: 1 / 2; }
.expo-item-3 { grid-column: 8 / 13; grid-row: 2 / 3; }

.video-wrapper {
  width: 100%;
  height: 100%;
  position: relative;
  overflow: hidden;
}
.expo-vid {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s cubic-bezier(0.25, 1, 0.5, 1), filter 0.8s ease;
  filter: grayscale(100%) brightness(0.4);
}
.expo-item:hover .expo-vid {
  transform: scale(1.05);
  filter: grayscale(0%) brightness(0.9);
}

.video-overlay {
  position: absolute;
  inset: 0;
  padding: 3rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  pointer-events: none;
  background: linear-gradient(to top, rgba(0,0,0,0.9) 0%, transparent 60%);
}

.video-btn {
  font-family: var(--font-body);
  font-size: 0.75rem;
  color: #FAFAFA;
  letter-spacing: 0.2em;
  border: 1px solid rgba(255,255,255,0.3);
  padding: 0.5rem 1rem;
  border-radius: 50px;
  align-self: flex-start;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(5px);
}

.video-title {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2.5rem);
  font-weight: 700;
  color: #FFF;
  line-height: 1.1;
  transform: translateY(20px);
  opacity: 0;
  transition: all 0.5s cubic-bezier(0.25, 1, 0.5, 1);
}

.expo-item:hover .video-title {
  transform: translateY(0);
  opacity: 1;
}

/* FOOTER AWWARDS STYLE */
.footer-section {
  position: relative;
  background: var(--star);
  padding: 15vh 5vw 5vh 5vw;
  z-index: 10;
  border-top: 1px solid rgba(255,255,255,0.05);
}
.footer-container {
  display: flex;
  flex-direction: column;
  gap: 15vh;
}
.cta-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 5vw;
}
.cta-headline {
  font-family: var(--font-display);
  font-size: clamp(4rem, 7vw, 10rem);
  font-weight: 800;
  color: #FFF;
  line-height: 0.85;
  letter-spacing: -0.04em;
  text-transform: uppercase;
  margin: 0;
}
.cta-headline i {
  color: var(--atria-pink);
  font-style: italic;
  font-weight: 400; /* High contrast weight */
  letter-spacing: -0.02em;
}
.cta-circle-btn {
  width: clamp(140px, 15vw, 220px);
  height: clamp(140px, 15vw, 220px);
  border-radius: 50%;
  background: var(--atria-pink);
  color: #FFF;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 0.9rem;
  font-weight: bold;
  letter-spacing: 0.1em;
  text-align: center;
  cursor: pointer;
  transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1), background 0.4s ease, color 0.4s ease;
  flex-shrink: 0;
  text-transform: uppercase;
  box-shadow: 0 10px 40px rgba(255, 70, 192, 0.3);
}
.cta-circle-btn:hover {
  background: #FFF;
  color: var(--atria-pink);
  transform: scale(0.95);
  box-shadow: 0 10px 40px rgba(255, 255, 255, 0.2);
}
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 3rem;
}
.footer-info {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.footer-info.end {
  align-items: flex-end;
}
.footer-label {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--star-dim);
  letter-spacing: 0.2em;
  text-transform: uppercase;
}
.footer-value {
  font-family: var(--font-body);
  font-size: 1.25rem;
  color: #FFF;
  text-decoration: none;
  transition: color 0.3s ease;
}
.link-hover:hover {
  color: var(--atria-pink);
}
.footer-logo {
  height: 35px;
  filter: brightness(0) invert(1);
}

@media (max-width: 768px) {
  .numbers-grid { grid-template-columns: 1fr; gap: 2rem; }
  .number-card { padding: 2.5rem 1.5rem; }
  .top-left, .top-right { position: relative; top: 0; left: 0; right: 0; text-align: center; margin-bottom: 1.5rem; }
  .hero-container { justify-content: center; padding-top: 10vh; }
  
  .btn-container { flex-direction: column; gap: 1rem; align-items: stretch; width: 100%; max-width: 320px; margin-left: auto; margin-right: auto; }
  .magnetic-wrap { width: 100%; padding: 0.5rem; }
  .btn-premium { width: 100%; text-align: center; justify-content: center; }
  
  .hero-title { font-size: clamp(2.8rem, 10vw, 4rem); line-height: 0.95; }
  
  .clients-marquee-set { gap: 3rem; padding-right: 3rem; }
  .client-logo { height: 120px; width: 220px; }

  .cases-container {
    flex-direction: column;
    width: 100%;
    height: auto;
    padding: 10vh 5vw;
  }
  .cases-text-panel {
    width: 100%;
    padding-right: 0;
    margin-bottom: 4rem;
    text-align: center;
  }
  .cases-gallery {
    flex-direction: column;
    gap: 3rem;
    padding-right: 0;
    width: 100%;
  }
  .case-card { width: 100%; }
  .case-image-wrapper { height: 40vh; border-radius: 16px; }
  .case-img { width: 100%; transform: none; }
  
  .exponential-section { padding: 10vh 5vw; }
  .expo-title { font-size: clamp(1.6rem, 8vw, 2.5rem); line-height: 1.1; word-break: normal; hyphens: auto; }
  .expo-grid { display: flex; flex-direction: column; gap: 1.5rem; }
  .expo-item { height: 45vh; border-radius: 16px; }
  .expo-item-1, .expo-item-2, .expo-item-3 { grid-column: auto; grid-row: auto; }
  .expo-vid { filter: grayscale(0%) brightness(0.8); }
  .video-title { transform: none; opacity: 1; font-size: 1.6rem; padding-bottom: 0.5rem; }
  .video-overlay { padding: 1.5rem; background: linear-gradient(to top, rgba(0,0,0,0.9) 0%, transparent 70%); }

  .footer-section { padding: 10vh 5vw 5vh 5vw; }
  .cta-top { flex-direction: column; align-items: center; gap: 3rem; text-align: center; }
  .cta-headline { font-size: clamp(3rem, 10vw, 4rem); }
  .cta-circle-btn { width: 180px; height: 180px; }
  .footer-bottom { flex-direction: column; align-items: center; gap: 2rem; text-align: center; }
  .footer-info.end { align-items: center; }

  .floating-detail { display: none; }
  .cursor-dot, .cursor-ring { display: none; }
  body { cursor: auto; }
  .btn-premium { cursor: pointer; }
}
