
:root {
  
  --hero-logo-top: 8%;
  --hero-logo-width: 26vw;

  --hero-main-top: 27%;
  --hero-main-width: 53vw;

  --hero-ca-top: 88%;
  --hero-ca-width: 30vw;

  --socials-top: 3%;
  --socials-right: 3%;

 
  --about-title-top: 8%;
  --about-title-left: 7%;

  --about-text-top: 18%;
  --about-text-left: 7%;
  --about-text-width: 40%;

  --chart-title-top: 42%;
  --chart-title-left: 7%;

  --chart-box-top: 50%;
  --chart-box-left: 18%;
  --chart-box-width: 50%;
  --chart-box-height: 40%;

  --about-small-bottom: 0%;
  --about-small-left: 0%;
  --about-small-width: 20%;

  --about-main-bottom: 0%;
  --about-main-right: 0%;
  --about-main-height: 100%;
}



* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  height: 100%;
  width: 100%;
  overflow-x: hidden;
  scroll-behavior: smooth;
}

body {
  font-family: "Gorditas", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background-color: #ffb7d5;
  color: #ffffff;
}

.page {
  position: relative;
}


.screen {
  position: relative;
  width: 100%;
  height: 100vh;
  min-height: 600px;
  overflow: hidden;
}


.bg-layer {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  z-index: 0;
}

#cursor-layer {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
}


#toast {
  position: fixed;
  left: 50%;
  bottom: 40px;
  transform: translateX(-50%) translateY(120%);
  padding: 12px 22px;
  background: rgba(0, 0, 0, 0.8);
  color: #fff;
  border-radius: 999px;
  font-size: 14px;
  z-index: 2000;
  opacity: 0;
  transition: transform 0.25s ease-out, opacity 0.25s ease-out;
}

#toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}



.socials {
  position: absolute;
  top: var(--socials-top);
  right: var(--socials-right);
  display: flex;
  flex-direction: column;
  gap: 16px;
  z-index: 3;
}

.social-btn {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  border: 0;
  padding: 0;
  background: transparent;
  cursor: pointer;
  box-shadow: 0 0 0 4px #ffffff80;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.15s ease-out, box-shadow 0.15s ease-out, filter 0.15s ease-out;
}

.social-btn img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 50%;
}

.social-btn:hover {
  transform: translateY(-2px) scale(1.05);
  box-shadow: 0 0 18px #ffe6f7;
}

.social-btn:active {
  transform: translateY(2px) scale(0.96) rotate(-4deg);
  filter: brightness(0.9);
}


.hero-logo {
  position: absolute;
  top: var(--hero-logo-top);
  left: 50%;
  transform: translateX(-50%);
  width: var(--hero-logo-width);
  max-width: 500px;
  z-index: 2;
}


.hero-main-img {
  position: absolute;
  top: var(--hero-main-top);
  left: 50%;
  transform: translateX(-50%);
  width: var(--hero-main-width);
  
  z-index: 2;
}


.ca-banner {
  position: absolute;
  top: var(--hero-ca-top);
  left: 50%;
  transform: translateX(-50%);
  width: var(--hero-ca-width);
  max-width: 500px;

  border: none;
  border-radius: 999px;
  padding: 14px 24px;
  background: #ff82b6;
  box-shadow: 0 0 0 6px #000000, 0 4px 0 #e45f95;
  color: #000;
  font-size: 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  cursor: pointer;
  transition: transform 0.12s ease-out, box-shadow 0.12s ease-out, filter 0.12s ease-out;
  z-index: 2;
}

.ca-banner:active {
  transform: translateX(-50%) translateY(2px) scale(0.98);
  box-shadow: 0 0 0 4px #000000, 0 1px 0 #c03f75;
  filter: brightness(0.9);
}

.ca-banner.clicked {
  animation: caPulse 0.4s ease-out;
}

.ca-label {
  font-weight: 700;
}

.ca-value {
  font-size: 18px;
  word-break: break-all;
}

.about-title {
  position: absolute;
  top: var(--about-title-top);
  left: var(--about-title-left);
  font-size: 52px;
  letter-spacing: 3px;
  z-index: 2;
}

.about-text {
  position: absolute;
  top: var(--about-text-top);
  left: var(--about-text-left);
  width: var(--about-text-width);
  max-width: 760px;
  font-size: 20px;
  line-height: 1.4;
  z-index: 2;
}

.chart-title {
  position: absolute;
  top: var(--chart-title-top);
  left: var(--chart-title-left);
  font-size: 52px;
  letter-spacing: 3px;
  z-index: 2;
}

.chart-box {
  position: absolute;
  top: var(--chart-box-top);
  left: var(--chart-box-left);
  width: var(--chart-box-width);
  height: var(--chart-box-height);
  max-width: 900px;

  background: #ffe6f6;
  border-radius: 18px;
  box-shadow: 0 0 0 4px #ffffffa0;
  overflow: hidden;
  z-index: 2;
}

.chart-box iframe {
  width: 100%;
  height: 100%;
}


.about-small-img {
  position: absolute;
  left: var(--about-small-left);
  bottom: var(--about-small-bottom);
  width: var(--about-small-width);
  
  z-index: 3;
}


.about-main-img {
  position: absolute;
  right: var(--about-main-right);
  bottom: var(--about-main-bottom);
  height: var(--about-main-height);
  max-height: 100%;
  max-width: 150%;
  filter: drop-shadow(0 15px 30px rgba(255, 92, 162, 0.6));
  z-index: 2;
}



.floating {
  animation: floating 3s ease-in-out infinite;
}

.floating-slow {
  animation: floating 5s ease-in-out infinite;
}

@keyframes floating {
  0%   { transform: translateX(-50%) translateY(0); }
  50%  { transform: translateX(-50%) translateY(-12px); }
  100% { transform: translateX(-50%) translateY(0); }
}

@keyframes caPulse {
  0%   { transform: translateX(-50%) scale(1); }
  50%  { transform: translateX(-50%) scale(1.04); }
  100% { transform: translateX(-50%) scale(1); }
}


.animated-item {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.animated-item.visible {
  opacity: 1;
  transform: translateY(0);
}




@keyframes dotFade {
  0%   { transform: translate(-50%, -50%) scale(1); opacity: 0.9; }
  100% { transform: translate(-50%, -80%) scale(0.2); opacity: 0; }
}



@media (max-width: 900px) {

  
  .screen {
    height: auto;
    padding: 70px 16px 60px;
  }

  #cursor-layer {
    display: none; 
  }

  .socials {
    top: 10px;
    right: 10px;
    flex-direction: row;
  }

  .social-btn {
    width: 52px;
    height: 52px;
  }

 

  #hero {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
  }

  .hero-logo,
  .hero-main-img,
  .ca-banner {
    position: static;
    transform: none;
    width: 80vw;
    max-width: 420px;
    margin: 0 auto 16px;
  }

  .hero-main-img {
    max-width: 500px;
  }

  .ca-banner {
    width: 90vw;
    max-width: 480px;
    font-size: 16px;
  }

  

  #about {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 18px;
  }

  .about-title,
  .about-text,
  .chart-title,
  .chart-box,
  .about-small-img,
  .about-main-img {
    position: static;
    transform: none;
  }

  .about-title {
    font-size: 34px;
    align-self: flex-start;
  }

  .about-text {
    width: 100%;
    font-size: 16px;
  }

  .chart-title {
    font-size: 32px;
    align-self: flex-start;
  }

  .chart-box {
    width: 100%;
    height: 260px;
  }

  .about-main-img {
    max-height: 320px;
    max-width: 80%;
  }

  .about-small-img {
    align-self: flex-start;
    width: 34vw;
    max-width: 160px;
  }
}


