

:root {

  --socials-top: 4%;
  --socials-left: 3%;


  --hero-title-top: 2%;
  --hero-title-left: 40%;
  --hero-title-width: 35%;

  --hero-character-bottom: 0%;
  --hero-character-right: 8%;
  --hero-character-height: 80%;

  --hero-about-top: 32%;
  --hero-about-left: 18%;
  --hero-about-width: 32%;

  --chart-title-top: 10%;
  --chart-title-left: 49%;
  --chart-title-width: 18%;

  --chart-box-top: 25%;
  --chart-box-left: 28%;
  --chart-box-width: 55%;
  --chart-box-height: 55%;

  --chart-character-bottom: 0%;
  --chart-character-left: 4%;
  --chart-character-height: 50%;
}


* {
  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: #1f2224;
  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;
}


#toast {
  position: fixed;
  left: 50%;
  bottom: 40px;
  transform: translateX(-50%) translateY(120%);
  padding: 10px 18px;
  background: rgba(0, 0, 0, 0.86);
  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);
  left: var(--socials-left);
  display: flex;
  flex-direction: row;
  gap: 16px;
  z-index: 3;
}

.social-btn {
  position: relative;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  border: none;
  padding: 0;
  cursor: pointer;
  background: transparent;
  overflow: visible;
  outline: none;
  transform-origin: center;
  transition: transform 0.15s ease-out;
}

.social-inner {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  box-shadow: 0 0 0 4px #ffffffaa, 0 0 25px rgba(173, 255, 47, 0.35);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle, #f5ffe7 0, #c0ff6a 45%, #6ad63b 100%);
  transition: box-shadow 0.15s ease-out, filter 0.15s ease-out, transform 0.15s ease-out;
}

.social-btn img {
  width: 90%;
  height: 90%;
  object-fit: contain;
}


.social-btn::before {
  content: "";
  position: absolute;
  inset: -8px;
  border-radius: 50%;
  border: 2px solid rgba(190, 255, 120, 0.5);
  opacity: 0.0;
  transform: scale(0.6);
  transition: opacity 0.2s ease-out, transform 0.2s ease-out;
}

.social-btn:hover {
  transform: translateY(-3px) scale(1.08) rotate(-2deg);
}

.social-btn:hover .social-inner {
  box-shadow: 0 0 0 5px #ffffff, 0 0 32px rgba(190, 255, 120, 0.85);
  filter: brightness(1.1);
  transform: scale(1.05);
}

.social-btn:hover::before {
  opacity: 1;
  transform: scale(1);
}

.social-btn:active {
  transform: translateY(1px) scale(0.95) rotate(3deg);
}

.social-btn.pressed .social-inner {
  animation: socialPop 0.3s ease-out;
}


.social-btn::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.8) 0, transparent 70%);
  opacity: 0;
  transform: scale(0.4);
  pointer-events: none;
}

.social-btn.ripple::after {
  animation: socialRipple 0.4s ease-out;
}


.hero-title {
  position: absolute;
  top: var(--hero-title-top);
  left: var(--hero-title-left);
  width: var(--hero-title-width);
  z-index: 2;
  transition-delay: 0.1s;
}

.hero-character {
  position: absolute;
  right: var(--hero-character-right);
  bottom: var(--hero-character-bottom);
  height: var(--hero-character-height);
  max-height: 90%;
  max-width: 50%;
  z-index: 2;
  transition-delay: 0.25s;
}

.hero-about-block {
  position: absolute;
  top: var(--hero-about-top);
  left: var(--hero-about-left);
  width: var(--hero-about-width);
  max-width: 520px;
  z-index: 2;
  transition-delay: 0.4s;
}



.chart-title-img {
  position: absolute;
  top: var(--chart-title-top);
  left: var(--chart-title-left);
  width: var(--chart-title-width);
  max-width: 260px;
  z-index: 2;
  transition-delay: 0.1s;
}

.chart-box {
  position: absolute;
  top: var(--chart-box-top);
  left: var(--chart-box-left);
  width: var(--chart-box-width);
  height: var(--chart-box-height);
  
  background: #000;
  border-radius: 14px;
  box-shadow: 0 0 0 3px #00ff6a, 0 0 35px rgba(0, 255, 106, 0.4);
  overflow: hidden;
  z-index: 2;
  transition-delay: 0.25s;
}

.chart-box iframe {
  width: 100%;
  height: 100%;
}

.chart-character {
  position: absolute;
  left: var(--chart-character-left);
  bottom: var(--chart-character-bottom);
  height: var(--chart-character-height);
  max-height: 85%;
  max-width: 40%;
  z-index: 2;
  transition-delay: 0.4s;
}



.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 socialPop {
  0%   { transform: scale(1); }
  50%  { transform: scale(1.12); }
  100% { transform: scale(1); }
}

@keyframes socialRipple {
  0%   { opacity: 0.55; transform: scale(0.5); }
  100% { opacity: 0; transform: scale(1.5); }
}



@media (max-width: 900px) {

  .screen {
    height: auto;
    min-height: unset;
    padding: 60px 16px 60px;
  }

 
  .socials {
    top: 10px;
    left: 10px;
  }

  .social-btn {
    width: 52px;
    height: 52px;
  }

  
  #hero {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    gap: 16px;
  }

  .hero-title,
  .hero-character,
  .hero-about-block {
    position: static;
    width: 90vw;
    max-width: 420px;
    transform: none;
  }

  .hero-title {
    width: 70vw;
    max-width: 360px;
  }

  .hero-character {
    max-width: 440px;
  }

  .hero-about-block {
    max-width: 480px;
  }

 
  #chart {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 18px;
  }

  .chart-title-img,
  .chart-box,
  .chart-character {
    position: static;
    transform: none;
  }

  .chart-title-img {
    width: 40vw;
    max-width: 220px;
  }

  .chart-box {
    width: 100%;
    height: 260px;
  }

  .chart-character {
    max-height: 260px;
    max-width: 70%;
    order: 3;
  }
}

