@import url('https://fonts.googleapis.com/css2?family=Inter:wght@500;700&family=Unbounded:wght@400;700&display=swap');

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

body {
  font-family: "Unbounded", sans-serif;
  background: rgb(202 151 240);
  color: rgb(255 255 247);
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.avatar {
  margin-bottom: 1rem;
}

.logo-gif {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 0 auto;
  transform: translateZ(0);
}

.name {
  font-size: 1.75rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
  letter-spacing: -0.02em;
}

.tagline {
  font-size: 0.875rem;
  font-family: "Inter", sans-serif;
  font-weight: 500;
  color: rgb(255 255 247 / 0.7);
  margin-bottom: 2rem;
}

.wave-bg {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 40vh;
  pointer-events: none;
  z-index: 0;
}

#waveCanvas {
  width: 100%;
  height: 100%;
  display: block;
}

.wave-svg1,
.wave-svg2 {
  width: 200%;
  height: 100%;
  display: block;
}

.wave-wrap1 {
  position: absolute;
  inset: 0;
}

.wave-wrap2 {
  position: absolute;
  inset: 0;
}

.wave-svg1 {
  animation: slide1 20s linear infinite;
}

.wave-svg2 {
  animation: slide2 28s linear infinite;
}

.p1 {
  animation: morph1 8s ease-in-out infinite;
}

.p2 {
  animation: morph2 11s ease-in-out infinite;
}

@keyframes slide1 {
  to { transform: translateX(-50%); }
}

@keyframes slide2 {
  to { transform: translateX(-50%); }
}

@keyframes morph1 {
  0% { d: path("M0,224C120,176 240,128 360,160C480,192 600,240 720,224C840,208 960,160 1080,176C1200,192 1320,224 1440,208L1440,320L0,320Z"); }
  25% { d: path("M0,208C120,160 240,144 360,192C480,240 600,232 720,208C840,184 960,144 1080,184C1200,224 1320,232 1440,200L1440,320L0,320Z"); }
  50% { d: path("M0,232C120,200 240,160 360,176C480,192 600,208 720,200C840,192 960,176 1080,192C1200,208 1320,208 1440,192L1440,320L0,320Z"); }
  75% { d: path("M0,216C120,184 240,152 360,168C480,184 600,224 720,216C840,208 960,168 1080,184C1200,200 1320,216 1440,208L1440,320L0,320Z"); }
  100% { d: path("M0,224C120,176 240,128 360,160C480,192 600,240 720,224C840,208 960,160 1080,176C1200,192 1320,224 1440,208L1440,320L0,320Z"); }
}

@keyframes morph2 {
  0% { d: path("M0,256C100,224 200,192 320,208C440,224 560,256 680,240C800,224 920,192 1040,208C1160,224 1280,256 1440,240L1440,320L0,320Z"); }
  25% { d: path("M0,240C100,208 200,200 320,216C440,232 560,248 680,232C800,216 920,200 1040,216C1160,232 1280,248 1440,232L1440,320L0,320Z"); }
  50% { d: path("M0,268C100,240 200,224 320,232C440,240 560,248 680,240C800,232 920,224 1040,232C1160,240 1280,248 1440,232L1440,320L0,320Z"); }
  75% { d: path("M0,248C100,216 200,208 320,224C440,240 560,240 680,224C800,208 920,208 1040,224C1160,240 1280,240 1440,224L1440,320L0,320Z"); }
  100% { d: path("M0,256C100,224 200,192 320,208C440,224 560,256 680,240C800,224 920,192 1040,208C1160,224 1280,256 1440,240L1440,320L0,320Z"); }
}

.container {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 2rem 1.5rem;
  max-width: 620px;
  width: 100%;
}

.links {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.link-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem 1.5rem;
  border-radius: 14px;
  text-decoration: none;
  color: rgb(255 255 247);
  font-family: "Inter", sans-serif;
  font-weight: 700;
  font-size: 0.875rem;
  background: rgb(135 57 214);
  border: 1px solid rgb(153 90 217);
  transition: all 0.2s ease;
  letter-spacing: 0.06em;
}

.link-btn:hover {
  background: var(--brand);
  border-color: var(--brand);
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgb(34 34 34 / 0.3);
  color: #2d1b4e;
}

.idle-ad {
  position: fixed;
  bottom: 0;
  right: 0;
  z-index: 100;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;

  transform: translateY(calc(100% + 20px));
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.idle-ad.show {
  transform: translateY(0);
}

.idle-bubble {
  position: relative;
  background: #fff;
  color: #111;
  padding: 12px 20px;
  margin-right: 12px;
  border-radius: 16px;
  font-family: "Inter", sans-serif;
  font-weight: 600;
  font-size: 0.8125rem;
  letter-spacing: 0.04em;
  box-shadow: 0 4px 16px rgb(0 0 0 / 0.25);
  white-space: nowrap;
}

.idle-bubble::after {
  content: '';
  position: absolute;
  bottom: -5px;
  right: 20px;
  width: 10px;
  height: 10px;
  background: #fff;
  transform: rotate(45deg);
  box-shadow: 2px 2px 4px rgb(0 0 0 / 0.1);
}

.idle-img {
  width: 140px;
  display: block;
}

.cursor-follower {
  position: fixed;
  top: 0;
  left: 0;
  width: 60px;
  pointer-events: none;
  z-index: 9999;
}

.link-title {
  letter-spacing: 0.06em;
}
